I am unable to install any new Python packages using pip
. This question seems to solve the issue for a lot of people, but not me. When I run
curl https://bootstrap.pypa.io/get-pip.py | python
I get
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Some of the other answers to that question lead me to believe I need to update TLS to version 1.2, since running
python2 -c "import urllib2,json; print(json.loads(urllib2.urlopen('https://www.howsmyssl.com/a/check').read())['tls_version'])"
returns TLS 1.0
But I can't figure out how to do it. I'm currently using:
- MacOS 10.11
- pip 9.0.1
- Python 2.7.11
- Python 3.5.2
Any ideas?