Problem solving for PIP upgrades

Source: Internet
Author: User

From:http://blog.chenxiaosheng.com/posts/2016-05-19/pip_upgrade_pip_failure.html

Today, when you install a Python package using the Python pip, you are always prompted:

# pip Install--upgrade pip
requirement already up-to-date:pip in/usr/local/lib/python2.7/dist-packages
are using PIP version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the ' pip install--upgrade pip ' command.

Try to follow the instructions to perform PIP install--upgrade pip, without any error, but the upgrade has been unsuccessful, baffled, when looking at the man Pip, find the following options:

-V,--verbose
    give more output. Option is additive, and can being used to the 3 times.

Try to execute pip install--upgrade PIP-VVV finally has more tips:

1 location (s) to search for versions of PIP:
* http://example.url/simple/pip/
getting page http://example.url/  simple/pip/
starting new HTTP Connection (1): Example.url
"get/simple/pip/http/1.1" 403 247 could not
fetch URL http://example.url/simple/pip/: 403 Client Error:forbidden for url:http://example.url/simple/pip/-skipping
I nstalled version (8.1.2) is most up-to-date (past Versions:none) requirement already UP-TO-DATE:PIP in/usr/local/li
B/python2.7/dist-packages/pip-8.1.2-py2.7.egg
Cleaning up ...

Only then found that in my ~/.pip/pip.conf configuration file, Index-url used an abandoned address, deleted files after the upgrade, everything back to normal.

Such an important debug information, the PIP defaults unexpectedly does not output, continues baffled. :-)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.