python - Windows 10 pip 安装 'Failed Connection'

标签 python windows python-3.x pip

这是我在 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

最佳答案

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

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

希望这会有所帮助。

关于python - Windows 10 pip 安装 'Failed Connection',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52740901/

相关文章:

Python 3.6 - 'NoneType' 测试失败

python - 列表框中的重复单词

python - 多重处理 - 生产者/消费者设计

windows - 如何在 Windows 版 QuickTime 中进行高分辨率离屏渲染?

c++ - 如何使用 CreateProcess 调用 tshark 将捕获文件转换为 txt

python - 使用 Python Requests 登录论坛

python - 为什么我在安装 simplejson 时得到 "C extension could not be compiled"?

python - 分解 DataFrame 中具有多个值的单元格

java - Selenium/Java 无法与 Windows 上的 IE 一起使用

django - 如何在自定义用户模型中使用 django-guardian