For self-development, I began to study python. I downloaded it, installed it. Next installed on the recommendations PyChar. And the time has come to implement my first, less major project where I need a pip, I use the python command get-pip.py and then throws the above error to me. Through the command line on the Windows itself, everything works, and in PyChar an error. Initially, I kind of checked it out, correctly indicated the path to the interpreter, I don’t know any other reasons for the error, I use PyChar for the first time in my life, so I’m not up to date on the finer points and so on. Who is fumbling, help please, the third day I am dabbling with this problem. 
- @kami, bad try. This is Windows, there is no python3. - insolor
- Screenshot need to remove and paste the text of the text. - Enikeyschik 3:49 pm
- @ArtyomChernitsky, when installing Python 3, pip is automatically installed. Try running pip from the Windows command line. Additionally, it is not necessary to install it via get-pip.py. - insolor 3:51 pm
- Write the path to the python - Alexander Chernin
- @insolor entered into the command line, everything works, you were right, well, well, but then how can I install an additional library? I want to install SpeechRecognition 3.8.1, and for this you need to enter "pip install SpeechRecognition", and the same error pops up, but instead of "python" it says that "pip" is not an internal or external command and so on. Everything works in the command line and PyChar is not. - Data Nerd
|
2 answers
For some reason, your Pycharm console does not see system-wide environment variables. There are two options:
- Install packages via pip from system cmd
- Use PyCharm tools: File menu - Settings, Project: (project name), Project interpreter, to the right of the list of installed modules click +, in the search enter SpeachRecognition, select the found module, then click Install Package at the bottom
The second option is preferable, because if you use a virtual environment in the project, the module will be installed into it, and when installed via the system cmd, the module will be installed globally, and most likely will not be visible from the virtual environment. If you do not use a virtual environment in the project, then there will not be much difference.
|
Specifically, in your case - just do not use Cyrillic in naming folders in the project path, and everything will be fine.
- Thank you)))))))) - Data Nerd
|