【发布时间】:2019-07-08 07:33:39
【问题描述】:
尝试在 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,这就是它失败的原因?
【问题讨论】:
-
你可以试试:a)
pip download numpy, b)pip install numpy*.whl吗? -
试试
pip3 install numpy -
@AlexYu
pip download numpy也挂在同一点 -
您是否按照@GuilleC 的建议尝试了
--no-cache-dir?你在防火墙下吗?如果你:a)安装pipenv b)pipenv install numpy会变成什么? -
是的,
--no-cache-dir工作,如果我自己安装包,但如果我将它添加到像pip install -r req.txt这样的命令中,numpy 只是要安装的包之一的依赖项。 .
标签: python python-3.x numpy pip