pip install在安装构建依赖项时失败



在我可爱的封闭IT环境中安装软件包

python -m pip --default-timeout=1000 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host files.pythonhosted.org pyautogui

使用这个,我能够安装软件包,如matplotlib没有任何问题,但是pyautoguiInstalling build dependencies步骤失败:

Using cached PyAutoGUI-0.9.53.tar.gz (59 kB)
Collecting pymsgbox
Using cached PyMsgBox-1.0.9.tar.gz (18 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 2
.....
socket.timeout: The read operation timed out
.....
HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

欢迎任何帮助

可以检查网络/防火墙/代理问题。如果可以,那么在pip帮助中可以找到timeout的参数。——timeout设置套接字超时(默认为15秒)。

最新更新