【问题标题】:Not able to install python modules such as pip,selenium etc无法安装 pip、selenium 等 python 模块
【发布时间】: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


【解决方案1】:

使用代理在防火墙后面的公司服务器上安装 python 包。

类似这样的:

pip install --proxy www-proxy.xxxxxxx.com:8080 psutil

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-29
    相关资源
    最近更新 更多