使用pip安装Python模块时出现以下错误:
C:\Users\Administrator>pip install pillow
Collecting pillow
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
ction.VerifiedHTTPSConnection object at 0x00000000045093C8>, 'Connection to pypi
.python.org timed out. (connect timeout=15)')': /simple/pillow/
。。。
matching distribution found for pillow
公司内网需要设置代理,正确命令:
pip --proxy=http://用户名:密码@公司对应代理地址:端口号 install Python模块
本文介绍了解决在公司内网环境下使用pip安装Python模块时遇到连接超时的问题,并提供了一个正确的命令示例来配置代理。

1万+

被折叠的 条评论
为什么被折叠?



