python pip 更新后损坏
我在运行的几个版本的python3中,看到pip出现了以下错误:
...
raise MissingSchema('Proxy URLs must have explicit schemes.')
pip._vendor.requests.exceptions.MissingSchema: Proxy URLs must have explicit schemes.
看起来是和requests这个库有关的问题。
这是在python 3.3.4上使用pip 1.5.2时发生的。
2 个回答
1
试着用这种格式来安装包:pip --proxy http:代理名称:端口号 install 包名
14
我猜新的版本对检查你的代理设置变得更严格了。如果你有一个环境变量,比如 http_proxy=localhost:3128
,那么把它更新成 http_proxy=http://localhost:3128
,这样就没问题了。(https_proxy
也是一样的——其实我想最近的 pip 版本要求使用 HTTPS?)