【问题标题】:windows 10 pip install 'Failed Connection'windows 10 pip install '连接失败'
【发布时间】:2018-10-10 13:02:01
【问题描述】:

这是我在 Windows 命令提示符下运行 pip install numpy 时遇到的错误。我尝试过的其他软件包也会出现此错误。我以管理员身份登录 cmd,但结果相同。我已连接到互联网,所以这不是问题。任何帮助,将不胜感激。

 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x05DD03F0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')': /simple/numpy/
  Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy

【问题讨论】:

  • 你在使用代理吗?
  • 可能是,如何检查?
  • 摆脱所有使用 anaconda 的 pip 问题。您无需为此类问题挑战自己。
  • @ihsancemil 的建议对 Windows 来说是明智的。与您当前的问题无关,但在 Windows 上安装科学堆栈有时绝对是一件痛苦的事情,因此通常更容易获得 Anaconda 它将解决所有问题,并且您当前的问题在此过程中消失
  • 当然这可能是一个很好的解决方法,但它不适合根本问题。

标签: python windows python-3.x pip


【解决方案1】:

在 Windows 10 中: 转到开始->网络代理设置->在手动代理设置中禁用“使用代理服务器”。

现在,尝试使用pip install numpy再次安装

希望,这会有所帮助。

【讨论】:

    猜你喜欢
    • 2018-08-26
    • 1970-01-01
    • 1970-01-01
    • 2019-08-30
    • 2017-04-21
    • 2018-12-17
    • 1970-01-01
    • 2015-12-22
    • 2012-09-24
    相关资源
    最近更新 更多