I am not able to install any Python libraries. I am using pip 9.0.1
and python 2.7
. I am getting the following error:
EN-NishantS:~
I had a similar problem.
The problem was in an old version of OpenSSL linked to the system Python installation.
So I've uninstalled all Python distributions from the system and installed the last Python implementation with brew install python@2
.
You can check the OpenSSL version linked to Python like this:
Python 2.7.14 (default, Mar 22 2018, 15:04:47)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.0.2o 27 Mar 2018'