Python is not recognized in Windows CMD even after being added to PATH

I am trying to write and run Python scripts on my 64-bit machine under Windows 7. I installed Python in C: / Python34 and I added it to the PATH variable for Windows:

C:\Python34; C:\Python34\python.exe

(the second is probably pointless, but I tried), and yet I get this error on the Windows command line:

C:\Users\me>python test.py
'python' is not recognized as an internal or external command,
operable program or batch file.

So, how can I really install Python on my Windows x64 computer?

+4
source share
12 answers

This may be trivial, but have you tried closing the command prompt window and opening a new one? This should reload all environment variables. Try to enter

echo %PATH%

, Python.

, PATH .

+9

: Python , Python , .

:

, , % SystemRoot%\py.exe, > C:\Windows\py.exe. , Python PATH>, py Python; 2.x, py -3, > Python 2 . -

py python, . : python setup.py build → . py setup.py build → . ,

+8

PATH 1024

cmd- , , PATH, 1024 .

, PATH, 1024, , .

echo %PATH%

cmd, , PATH.

, , - PATH.


: PATH = SYSTEM_PATH + USER_PATH, , < 1024.

+3

.

, , , '..\python.exe' , , , . , "python.exe" ( Anaconda ""), , JDK PATH.

, !

+3

, .

, : C:\Windows\system32; C:\Python27; C:\Python27\Scripts;

: C:\Windows\system32;C:\Python27;C:\Python27\Scripts;

+1

, .

, , C:\Python34\python.exe C:\Python34\python 34.exe. , python34 .

, 'python' C:\Python27 , C:\Python34

, , , .

0

Python 2.7 Windows 10, , C:\Python27\python.exe , C:\Python27\ .

0

' Windows x86-64' python .

Python , 32- Python. Python 32 64 .

, x-64, 64- Python.

0

, (Python 3.7.3) " " " ", .

, , , " ". C:\Program Files\Python37, , " ".

0

, CMD.

CMD Windows_key + R, cmd OK. python .

0

, 400 . ( )

: setx path "% path%; c:\examplePath"

, , , .

: echo% PATH%

0

, . , CMD , ​​ . , , , 8 , Django , , .

-1

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


All Articles