title: pip fails due to SSL cert TLSv1.0
body: <p>Apologies for another pip issue, but I've tried almost every other thread and nothing so far works.
  So I am having the issue that pip doesn't install any package due to using TLSv1.0
  <code>Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping</code></p>
  
  <p>I have done the curl to download the get_pip.py script then executed it with sudo python.</p>
  
  <p>I have tried downloading the pip.tar.gz manually, extracting it and installing via <code>pip install ./pip.10.0.3</code></p>
  
  <p>Once installed, I have done <code>pip install --upgrade setuptools</code></p>
  
  <p>I have installed python via Homebrew.</p>
  
  <p><code>pip --version
  pip 10.0.1 from /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip (python 2.7)</code></p>
  
  <p>However every time I still get this TLSv1 error when attempting to install a package, and it shows I have TLS1.0 in use</p>
  
  <p><code>python2 -c "import urllib2,json; print(json.loads(urllib2.urlopen('https://www.howsmyssl.com/a/check').read())['tls_version'])"
  TLS 1.0</code></p>
  
  <p>Running OSX 10.13.4</p>
  
  <p>EDIT: 
  <code>python2 -c "import ssl; print(ssl.OPENSSL_VERSION)"
  OpenSSL 0.9.8zh 14 Jan 2016</code></p>
  
  <p><code>$ brew upgrade openssl
  Error: openssl 1.0.2o_2 already installed</code></p>
  
  <p>EDIT2:
  Followed the thread here, the topmost answer and eventually worked
  <a href="https://stackoverflow.com/questions/24323858/python-referencing-old-ssl-version">Python referencing old SSL version</a></p>
  
  <p><code>$ python -c "import ssl; print ssl.OPENSSL_VERSION"
  OpenSSL 1.0.2o  27 Mar 2018</code></p>