gil Got gil Got - 2 months ago 55
Python Question

pip error while installing Python: "Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS"

I downloaded the Python 3.5 source code and ran the following:

$ tar -xf Python-3.5.2.tar.xz
$ ./configure
$ make
$ sudo make install


It proceeded well until
make
. When
sudo make install
ran, it printed:

Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS


What went wrong?

Answer

You are most likely not compiling Python with SSL/TLS support. You are probably missing the SSL development libraries. Install the following dependencies, and then re-configure and re-compile Python 3.5.

Ubuntu

apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libsqlite3-dev

CentOS

yum install zlib-devel bzip2-devel sqlite sqlite-devel openssl-devel
Comments