Python and Pip not in sync
<p>I am working on a remote linux server with python 2.7.6 pre-installed. I want to <strong>upgrade to python 2.7.12</strong> (because I am not able to install some libraries on the 2.7.6 due to some <strong>ssl error</strong> shown below).</p>

<p>I downloaded and compiled from source and installed 2.7.12 and <code>python2.7</code> opens 2.7.12. However, I still get an update python version warning while using pip. It seems the pip has not synced with 2.7.12 and continues to serve 2.7.6 and I am not able to find other installations of pip in system.</p>

<p>I just want a working version of python2.7.x with pip/pip2/pip2.7 working properly.</p>

<pre><code>    /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
</code></pre>

<p>Thanks @Evert , just before looking into your solution I tried,</p>

<pre><code>curl -O https://bootstrap.pypa.io/get-pip.py
python27 get-pip.py
</code></pre>

<p>This fixed my issue and I was able to install libraries to <code>2.7.12</code> using <code>pip/pip2.7</code></p>

<p>I was earlier trying <code>python2.7 -m pip install package-name</code> and I was getting <code>pip not found</code>.</p>

python linux python-2.7 pip