Reputation:
I have installed a local python3.5 on my Debian 8 system as follows, but there is no pip3 installed with it (i can not find pip in any of the installed python directries like site-packages or in the bin/):
Downloaded the source from python.org
made a ~/.local_python directory
cd Download/Python3.5
./configure --prefix=/home/${USER}/.local_python
make
make install
The Python3.5 seems to be installed properly, i can run the interpreter from inside the .local_python and there is no collision with system default pythons (which was my goal). No i can't find an installed pip3 in it to use to install packages like PyQt5 which support only Python versions <= 3.5. Can anyone help?
Upvotes: 1
Views: 872
Reputation: 140
Adding to the answer by jmd_dk, if you don't know what all dependencies are to be installed for OpenSSL and zlib, Just install these dependencies. These are more than sufficient:
sudo apt-get install make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev
Source:ensurepip failure
When I followed the above steps, I got this error:Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS
. After installing the above dependencies, all worked like a charm.
Upvotes: 2
Reputation: 13120
Try adding --with-ensurepip=install
to your configuration:
./configure --prefix=/home/${USER}/.local_python --with-ensurepip=install
Also, pip needs OpenSSL and zlib on your system. You most probable already have these installed.
Upvotes: 1