问题描述
我在运行的几个版本的python3上看到pip的以下错误:
...
raise MissingSchema('Proxy URLs must have explicit schemes.')
pip._vendor.requests.exceptions.MissingSchema: Proxy URLs must have explicit schemes.
它看起来像请求库的东西。
这是python 3.3.4上的pip 1.5.2
1楼
我猜测新版本更严格地检查您的代理设置是否有效。
如果你有一个像http_proxy=localhost:3128
这样的环境变量,那么将它更新为http_proxy=http://localhost:3128
,你应该没事了。
(同样适用于https_proxy
- 实际上我猜最近版本的pip坚持使用HTTPS?)
2楼
尝试使用格式pip --proxy http:proxy_name:port install packet