与 pypi.org 的连接在企业 Windows 笔记本电脑中被阻止,因此无法安装 pip、selenium 等...还有其他方法可以实现此目的吗?
错误
H:\script>python get-pip.py Collecting pip Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/pip/ Operation cancelled by user
最佳答案
使用代理在防火墙后面的企业服务器上安装 python 包。
像这样:
pip install --proxy www-proxy.xxxxxxx.com:8080 psutil
关于python - 无法安装 python 模块,如 pip、selenium 等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51035406/