VPS-server was a version Python 2.6, I installed version Python 3.5.2. When I try to install some packages with help pip
, I got errors.
During installation packages:
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
Versions:
# 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)
How to change path to pip from python 3.5 ?
if you haven't pip in server you can use get-pip file:
after install python usually installed pip and you can run by pip3
command
for example you can use:
pip3 install netaddr
Upgrading pip manually solved this issue for me once. 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.
On Linux or OS X:
pip install -U pip
On Windows [5]:
python -m pip install -U pip
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.