安装Python3.5.2,但安装Python2.6的pip

安装Python3.5.2,但安装Python2.6的pip,python,centos,pip,Python,Centos,Pip,VPS服务器是Python2.6版本,我安装了Python3.5.2版本。 当我尝试使用helppip安装一些软件包时,出现了错误 安装包期间: 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 版本: # Python -V # P

VPS服务器是Python2.6版本,我安装了Python3.5.2版本。 当我尝试使用help
pip
安装一些软件包时,出现了错误

安装包期间:

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
版本:

# 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)

如何将路径从python 3.5更改为pip?

如果服务器中没有pip,则可以使用文件:

安装后,python通常会安装pip,您可以通过
pip3
命令运行

例如,您可以使用:

pip3 install netaddr

升级pip手动为我解决了一次这个问题

如果您正在使用从Python.org下载的Python 2>=2.7.9或Python 3>=3.4,那么已经安装了pip,但是您需要升级pip

在Linux或OS X上:

pip install -U pip
在Windows[5]上:

python -m pip install -U pip

要求已经更新:pip位于/usr/lib/**python2.6**/site-packages/pip-8.1.2-py2.6.egg
pip已经安装:
#pip-V#pip 8.1.2来自/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg(python2.6)
您的pip来自python 2.6,您可以创建虚拟环境并安装pip3。或者在服务器中安装pip3您是否尝试过:sudo pip3 install?