Install pip for python 3.5

Check: /usr/local/lib/python3.5/dist-packages

You’ll either have Pip there or easy_install(part of Pythons setup tools), which can be used to install Pip:

sudo apt-get install python3-setuptools
sudo python3.5 easy_install.py pip

Or you can try:

python3.5 -m ensurepip

Another option is attempting to install from a repository, the package name depends on your distribution:

sudo apt-get install python3-pip pip3

Edit: Try this correction for easy install:

sudo apt-get install python3-setuptools
sudo python3.5 /usr/local/lib/python3.5/dist-packages/easy_install.py pip

I’m assuming that’s the directory it’s installed to.

Also, you’re missing this library for the python3.5 -m ensurepip command:

sudo apt-get install libssl-dev

Leave a Comment