How do I upgrade pip on python 2.7?

15,995

Solution 1

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

Solution 2

Try Using :-

py -m pip install --upgrade pip

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

Share:
15,995
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    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.