当前位置: 代码迷 >> python >> 更新后python pip坏了
  详细解决方案

更新后python pip坏了

热度:94   发布时间:2023-07-14 08:59:21.0

我在运行的几个版本的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

我猜测新版本更严格地检查您的代理设置是否有效。 如果你有一个像http_proxy=localhost:3128这样的环境变量,那么将它更新为http_proxy=http://localhost:3128 ,你应该没事了。 (同样适用于https_proxy - 实际上我猜最近版本的pip坚持使用HTTPS?)

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