Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I upgrade pip on python 2.7?

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.

like image 433
madjo Avatar asked Sep 14 '26 08:09

madjo


1 Answers

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

like image 173
Quincy Avatar answered Sep 16 '26 20:09

Quincy