Install Python 3.5.2, but pip for Python 2.6
<p>VPS-server was a version Python 2.6, I installed version Python 3.5.2.
When I try to install some packages with help <code>pip</code>, I got errors.</p>

<p>During installation packages:</p>

<pre><code>DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
</code></pre>

<p>Versions:</p>

<pre><code># Python -V
# Python 3.5.2

# pip -V
# pip 8.1.2 from /usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg (python 2.6)

# cat /etc/*-release
# CentOS release 6.8 (Final)
</code></pre>

<p>How to change path to pip from python 3.5 ?</p>

<p>if you haven't pip in server you can use <a href="https://bootstrap.pypa.io/get-pip.py" rel="nofollow">get-pip</a> file:</p>

<p>after install python usually installed pip and you can run by <code>pip3</code> command</p>

<p>for example you can use:</p>

<pre><code>pip3 install netaddr
</code></pre>

python centos pip