-1

I tried to upgrade pip in Python with command python -m pip install --upgrade pip, but I get this error in the command prompt on Windows:

'python' is not recognized as as internal or external command, operable program or batch file.

Kindly help.

Jason R. Coombs
  • 41,115
  • 10
  • 83
  • 93
  • 6
    A quick google search showed a similar question: http://stackoverflow.com/questions/7054424/python-not-recognised-as-a-command as well as many other links about the problem – General Kandalaft Dec 22 '16 at 15:08

1 Answers1

1

You don't have Python in your PATH environment variable. You should add to your PATH environment variable ;C:\Python27;C:\Python27\Scripts (or wherever you installed your Python).

Alternatively, use py -m pip in place of python -m pip. If you have a late version of Python installed, py launcher will be in your path already.

For more details, read up on using Python in Windows.

Community
  • 1
  • 1
Jason R. Coombs
  • 41,115
  • 10
  • 83
  • 93