install.python-poetry.org
install.python-poetry.org copied to clipboard
Got ResourceUnavailable after installing on Windows in PowerShell
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 🙂