gil Got gil Got - 5 months ago 172
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
. When
sudo make install
ran, it printed:

Ignoring ensurepip failure: pip 8.1.1 requires SSL/TLS

What went wrong?


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.


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


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