【发布时间】:2018-06-26 05:25:30
【问题描述】:
与 pypi.org 的连接在公司 Windows 笔记本电脑中被阻止,因此无法安装 pip、selenium 等...还有其他方法可以实现吗?
错误
H:\script>python get-pip.py 收集 pip Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 连接后 被打破 'ConnectTimeoutError(, '与 pypi.org 的连接超时。 (connect timeout=15)')': /simple/pip/ 操作被用户取消
【问题讨论】:
-
在 pip install 命令中添加代理,例如:
pip install packagename --proxy proxyserver:portnumber -
谢谢大家,我已经使用代理安装了。
标签: python