简体   繁体   中英

python pip broken after update

I am seeing the following error from pip on several versions of python3 that I am running:

...
    raise MissingSchema('Proxy URLs must have explicit schemes.')
pip._vendor.requests.exceptions.MissingSchema: Proxy URLs must have explicit schemes.

It looks like something with the requests library.

And this is with pip 1.5.2 on python 3.3.4

I'm guessing that the new version is more strict about checking that your proxy settings are valid. If you have an environment variable like http_proxy=localhost:3128 then update it to http_proxy=http://localhost:3128 and you should be fine again. (Ditto for https_proxy -- actually I guess recent versions of pip insist on using HTTPS?)

尝试使用格式pip --proxy http:proxy_name:port install packet

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM