Sam*_*Sam 5 python windows proxy pip
我正在尝试在 Windows 10 上安装 Python pip 包。不幸的是,我工作中的代理给我带来了麻烦。
我尝试过的事情:
python -m pip install --proxy "http://sam.s1:1234@proxy.det.nsw.edu.au:8080"python -m pip install --proxy http://sam.s1:1234@proxy.det.nsw.edu.au:8080python -m pip install --proxy sam.s1:1234@proxy.det.nsw.edu.au:8080set HTTP_PROXY=sam.s1:1234@proxy.det.nsw.edu.au:8080 set HTTPS_PROXY=%HTTP_PROXY% set FTP_PROXY=%HTTP_PROXY%[global]
proxy = "http://sam.s1:1234@proxy.det.nsw.edu.au:8080"
trusted-host = pypi.python.org
他们都给了我类似的错误,例如:
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002A6F091B080>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))': /simple/django/
和
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x000002142813B128>, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/django/
和
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 407 Proxy Authentication Required',))': /simple/django/
虽然一劳永逸地整理出如何通过代理下载包会很好,但我会解决关于完全绕过代理的任何方法的说明,比如下载包和从源代码编译(我通常使用 Ubuntu,所以我有不知道如何在 Windows 上做这种类型的事情)。
其他信息:
$ pip list通过设置.ini的值来更改[list].| 归档时间: |
|
| 查看次数: |
2965 次 |
| 最近记录: |