简体   繁体   中英

Command prompt having trouble finding python

I'm using python 3.8.1 and now been coding for a bit with PyCharm and wanted to download PyGames and the problem that I'm facing is that with command prompt "pip" command I get error: No Python at 'C:...\PYTHON\python.exe'

A short explanation:

in Pycharm you need first to configure your python path in order to both run your code and both for use any python command (ie pip which is actually python.exe -m pip <your command> ).

Seem like you configured it under 'C:...\PYTHON\python.exe'

You need to change it in the following way: Go to File | Settings | Project: <your_project_name> | Project Interpreter File | Settings | Project: <your_project_name> | Project Interpreter

and there:

in setting icon pick "add" -> and add your python env.

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