Py installed from scoop can't find installed Python

74 Views Asked by At

After installing python using scoop:

scoop install python

When running py -3 script.py, py.exe, which is the Python Launcher for windows, can't find an installed Python.

py -3 script.py
No installed Python found!
1

There are 1 best solutions below

1
Pau On

After you have installed python using scoop, there's a tip in how to fix this. It is easy to miss:

scoop install python
...
...
Allow applications and third-party installers to find python by running: "C:\Users\[Username]\scoop\apps\python\current\install-pep-514.reg"

So in order to fix it just run this from your powershell terminal:

Replace [Username] with your real user.

C:\Users\[Username]\scoop\apps\python\current\install-pep-514.reg