install.python-poetry.org icon indicating copy to clipboard operation
install.python-poetry.org copied to clipboard

Got ResourceUnavailable after installing on Windows in PowerShell

Open cmp0xff opened this issue 4 months ago • 0 comments

Hi, we have a User on Windows 11 with PowerShell 7.5.2 installed. We installed Python via winget. After running

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -

and adding C:\Users\Name\AppData\Roaming\Python\Scripts\ to PATH, we got

ResourceUnavailable: Program 'poetry.exe' failed to run: An error occurred trying to start process 'C:\Users\Name\AppData\Roaming\Python\Scripts\poetry.exe' with working directory 'C:\Users\Name'. Access is denied.At line:1 char:1
+ poetry
+ ~~~~~~.

We tried to uninstall by running

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --uninstall

and then install again with python instead of py

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

which did not help. We get the same ResourceUnavailable error.

We checked the permission of C:\Users\Name\AppData\Roaming\Python\Scripts\poetry.exe, and the current User does have full control.

How can we address the problem? Thank you 🙂

cmp0xff avatar Sep 12 '25 14:09 cmp0xff