How to install pip on Ubuntu 16.04

cd "$HOME"
wget -O "$HOME/get-pip.py" "https://bootstrap.pypa.io/get-pip.py"
sudo python2 "$HOME/get-pip.py"
sudo python3 "$HOME/get-pip.py"
sudo sed -i -- 's/#\!\/usr\/bin\/python3/#\!\/usr\/bin\/python2/g' "/usr/local/bin/pip"
sudo sed -i -- 's/#\!\/usr\/bin\/python/#\!\/usr\/bin\/python2/g' "/usr/local/bin/pip"
sudo sed -i -- 's/#\!\/usr\/bin\/python22/#\!\/usr\/bin\/python2/g' "/usr/local/bin/pip"

Leave a comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.