python – Pip挂在“收集numpy”

试图在
Windows 10机器和python 3.7.2中安装python包.我正在使用以下命令:

pip install numpy

它永远挂起.我尝试使用以下内容获取更多信息:

pip -vvv install numpy

这是结果:

Collecting numpy
  1 location(s) to search for versions of numpy:
  * https://pypi.org/simple/numpy/
  Getting page https://pypi.org/simple/numpy/
  Looking up "https://pypi.org/simple/numpy/" in the cache
  Request header has "max_age" as 0, cache bypassed
  Starting new HTTPS connection (1): pypi.org:443
  https://pypi.org:443 "GET /simple/numpy/ HTTP/1.1" 304 0

我试图研究它但找不到任何东西.我不敢相信只有这个软件包会通过HTTPS,这就是为什么它失败了?

最佳答案 哟可以尝试添加:

--no-cache-dir

默认情况下,在发出任何HTTP请求时,pip将首先检查其本地缓存,以确定它是否为该请求存储了尚未过期的合适响应.如果错误出现在该过程的那一部分中,则跳过该缓存检查应该可以解决问题.

官方pip documentation的详细信息.

点赞