0
我通常使用代理我的工作場所,例如,我有:Plotly安裝失敗,建立新的連接
C:\myPath>echo %https_proxy%
http://myUser:[email protected]:myPort
現在我在家(!它的意思..沒有代理),我試圖安裝一包( 「plotly」):
C:\myPath>conda install -c plotly plotly=1.3.2
Fetching package metadata ...
CondaHTTPError: HTTP None None
for url <None>
An HTTP error occurred when trying to retrieve this URL.
ProxyError(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /plot
ly/win-64/repodata.json (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<requests.packages.urllib3
.connection.VerifiedHTTPSConnection object at 0x0000000004D786A0>: Failed to establish a new connection: [Errno 11004] g
etaddrinfo failed',)))",),)
爲了不去除環境變量我試圖刪除代理設置:
set http_proxy = ""
set https_proxy= ""
但情況並未改變。 我也曾嘗試:
C:\myPath>pip install plotly
Collecting plotly
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot conne
ct to proxy.', NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0
x0000000003C6C400>: Failed to establish a new connection: [Errno 11004] getaddrinfo failed',))': /simple/plotly/
的問題是: - 是我的問題,代理設置? - 如果是,我該如何改變它們?