简体   繁体   中英

No Python at 'C:\Users\PC\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe'

i install pycharm and try to run

 pip3 install python-binance

it show error

No Python at 'C:\Users\PC\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe'

how can fix that, i have pip in

C:\Users\PC\AppData\Local\Programs\Python\Python310\Scripts

i uninstalled previous python version and pycharm. and reinstall now anf this error happen how can fix

your python is installed in this directory C:\Users\PC\AppData\Local\Programs\Python\Python310 .Add this directory to your PATH environment variable.Refer this link https://www.pythonpool.com/default-python-path/#:~:text=How%20to%20set%20up%20a%20default%20python%20path,python%20path%20Press%20on%20the%20start%20menu.%20

Alternatively you can set PATH from command line using setx PATH "C:\Users\PC\AppData\Local\Programs\Python\Python310;%PATH%" from windows cmd. This will set the python path permanently.Restart your CMD after that.Then you can call python and pip directly from command line

solved, delete old pycharm project folder where had venv, and create new project folder from pycharm.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM