title: upgrade TLS 1.0 to TLS 1.2 on macOS
body: <p>I have troubles installing some python packages I believe because I have TLS 1.0 version. How do I upgrade to TLS 1.2?</p>
  
  <pre><code>python -c "import urllib2; import json; print(json.loads(urllib2.urlopen('https://www.howsmyssl.com/a/check').read())['tls_version'])"
  TLS 1.0
  </code></pre>
  
  <p>My macOS version: 10.13.4 (17E202)<br>
  python version: Python 2.7.13<br>
  openssl version: LibreSSL 2.2.7</p>
  
  <p>I tried to upgrade openssl, but it does not upgrade LibreSSL. I recall I was having some issue a year ago with openssl, I might have linked it manually or something :(</p>