2

I'm a complete newbie, giving my first baby steps into programming and automation testing. I have Python 2.7.12 installed and pip version 8.1.1 with it. I want to update pip but all the commands provided by many users (while I was searching about this subject) don't work, like for example:

python -m pip install --upgrade pip (doesn't recognize pip)

or

pip -V

python window - nameerror

Sure I'm making a terrible newbie mistake... Can you help me please? Thanks in advance.

desertnaut
  • 46,107
  • 19
  • 109
  • 140
madjo
  • 23
  • 1
  • 1
  • 5

3 Answers3

1

Try Using :-

py -m pip install --upgrade pip

because on certain versions of windows/python, python is not recognized as an valid command.

Vasu Deo.S
  • 1,659
  • 1
  • 7
  • 21
0

Make sure that you have the correct path in your windows command line like (in my case):

set PATH=%PATH%;C:\Users\iyv\AppData\Local\Programs\Python\Python35

set PATH=%PATH%;C:\Users\iyv\AppData\Local\Programs\Python\Python35\Lib\site-packages\pip

Otherwise you could try installing an interpreter like PyCharm, and doing the update through their platform.

desertnaut
  • 46,107
  • 19
  • 109
  • 140
Ivy
  • 175
  • 1
  • 13
0

Python does not maintain version 2.7 now; it prompts:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

To solve this problem, use

easy_install pip==20.3.4

(python version used: 2.7.13)

4.21.2021

Run as administrator

Quincy
  • 1
  • 2