Does the ecological path to Python not work?

I installed Python 3.4 on a new PC. Python works, but I'm trying to get pip to work on this. I made a path for Python which below.

C:\Python34\python.exe

When I run the code below

C:\Windows\System32>pip install python-docx


'python' is not recognized as an internal or external command,
operable program or batch file.
+4
source share
1 answer

It seems that you did not configure your variable PATHcorrectly. For this:

  • Hold down the Win key and press Pause.
  • Click "Advanced system settings."
  • Select environment variables.
  • Add ;C:\Python34to the variable PATH.
  • Restart the command line.

(You can also run set PYTHONPATH=%PYTHONPATH%;C:\Python34in cmd)

Python Windows.

+6

Source: https://habr.com/ru/post/1626388/


All Articles