1

When I type "Python" into the Windows 10 command prompt I get the error "'python' is not recognized as an internal or external command, operable program or batch file." I've tried adding "C:\Python27" to the "Path" environment variable, but it never works. It doesn't work for the as a user variable or a system variable.

8
  • is the python executable in C:\Python27? Commented Jul 25, 2018 at 16:39
  • Yes, that's the location Commented Jul 25, 2018 at 16:39
  • Either you haven't installed Python2.7 correctly or you have entered the environment variable incorrectly. Commented Jul 25, 2018 at 18:14
  • I just tried re-installing python, and I've tried the environment variable about 20 times and a few different ways. I did these things correctly. It has worked in the past. Commented Jul 26, 2018 at 0:56
  • 1
    It works in that directory, and now it also works in any directory. I don't know what that did, but thanks a million! Commented Jul 27, 2018 at 23:11

1 Answer 1

0

Python might not be in your PATH. Check the environment variables and ensure c:\python27 is in the PATH.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.