安装python3.5.2,但安装python2.6的pip

2024-04-27 22:20:58 发布

您现在位置:Python中文网/ 问答频道 /正文

VPS服务器的版本是Python2.6,我安装的是Python3.5.2版本。 当我试图用帮助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

版本:

^{pr2}$

如何从python3.5更改pip的路径?在


Tags: pipthenocore版本服务器byis
2条回答

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

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

例如,您可以使用:

pip3 install netaddr

升级pip为我解决了这个问题。Update pip Documentation

pip is already installed if you're using Python 2 >=2.7.9 or Python 3 >=3.4 downloaded from python.org, but you'll need to upgrade pip.

在Linux或OS X上:

pip install -U pip

在[5:5]上

^{pr2}$

相关问题 更多 >