Unable to install Pip

Hi !
I want to install pip for python2, the command I used is sudo apt install python-pip
It tells me that that package doesn’t have a version that can be installed.
It also tells me that it’s in the database but it’s obsolete or missing.
I can install pip for python3 but I actually need the python2 version.

Can anyone help me please ?

Python 2 is end of life. Python 2 is removed and python2 scripts will be removed.

I know that, but there are a lot of scripts that still use Python2, how can we run these scripts then ?

Can anyone help me please ?

I will probably get yelled at for sharing this, and am not responsible if a future Parrot Upgrade breaks your system. :innocent:

wget https://bootstrap.pypa.io/get-pip.py
sudo python2 get-pip.py


pip2 --version

It shows me this error :

Ah. Even the Python developers completely removed support for Python2 in the latest pip 21.0:

Note: pip 21.0, in January 2021, removed Python 2 support, per pip’s Python 2 support policy. Please migrate to Python 3.

You will have to search for a .tar.gz of pip 20.3.4 or older, then after extraction, run the included setup.py.

python2 setup.py


You are new to Python I take it.

sudo apt install python-setuptools

Oh I’ve just resolve the issue
Thank you for your replies !

Have a nice day !

1 Like

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.