[英]Install Python 3.5.2, but pip for Python 2.6
VPS-server 是 Python 2.6 版本,我安装了 Python 3.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 一次为我解决了这个问题。 更新 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.