installing pip using get_pip.py SNIMissingWarning
<p>I am trying to install pip on my Mac Yosemite 10.10.5using get_pip.py file but I am having the following issue</p>
<pre><code>User-MacBook-Pro:Downloads myself$ sudo python get-pip.py 
The directory '/Users/myself/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/myself/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
/tmp/tmpOofplD/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
/tmp/tmpOofplD/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:510: error:0D0890A1:asn1 encoding routines:ASN1_verify:unknown message digest algorithm - skipping
  Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
</code></pre>
<p>According to the my error message and <a href="https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning" rel="nofollow noreferrer">urllib3</a> my problem is because I have a python installation version earlier than earlier than 2.7.9 but my python is 2.7.10 as you can see</p>
<pre><code>User-MacBook-Pro:docs myself$ python
Python 2.7.10 (default, Jul 14 2015, 19:46:27) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] on darwin
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import sys
&gt;&gt;&gt; sys.version_info
sys.version_info(major=2, minor=7, micro=10, releaselevel='final', serial=0)
&gt;&gt;&gt; 
</code></pre>
<p>I verified my openssl installed and it seems to be ok</p>
<pre><code>User-MacBook-Pro:docs myself$ brew install openssl
Warning: openssl-1.0.2f already installed
</code></pre>
<p>not sure how to fix this, any idea ?</p>