how to install pip for python 2.7?

how to install pip for python 2.7?

Try installing manually:

wget -P ~/.local/lib https://bootstrap.pypa.io/pip/2.7/get-pip.py
python2.7 ~/.local/lib/get-pip.py --user 
#if using bash
printf nPATH=$PATH:~/.local/bin/ >> ~/.bashrc
source ~/.bashrc

pip has dropped a support to python 2.7. If you still want to use it for python 2.7, downgrading the pip will help you:

sudo easy_install pip==20.3.4

how to install pip for python 2.7?

Just go into terminal and type in:

sudo apt-get install python-pip

I know that this at least works on a raspberry pi.

Leave a Reply

Your email address will not be published. Required fields are marked *