Pip can't download pytorch, previous downloads page doesn't work either


(Hristo Buyukliev) #1

Fresh install of ubuntu 16, I downloaded cuda fine, created a python3.5 virtual environment. Once there, I wrote pip install http://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl, which gave me a response of

Collecting torch==0.4.0 from https://download.pytorch.org/whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80a128>: Failed to establish a new connection: [Errno -2] Name or service not known’,)’: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80a9e8>: Failed to establish a new connection: [Errno -2] Name or service not known’,)’: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80a7f0>: Failed to establish a new connection: [Errno -2] Name or service not known’,)’: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80a278>: Failed to establish a new connection: [Errno -2] Name or service not known’,)’: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80af28>: Failed to establish a new connection: [Errno -2] Name or service not known’,)’: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl
Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘download.pytorch.org’, port=443): Max retries exceeded with url: /whl/cu90/torch-0.4.0-cp35-cp35m-linux_x86_64.whl (Caused by NewConnectionError(’<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f7c3f80ada0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))

download.pytorch .org gives me a flat 404 error when I try to manually open it, and if I try to download a previous version of pytorch I again get a 404 error. I had the same problem a few months ago, on a fully different setup. How can I fix it? Is pytorch not compatible with cuda9.0 or something?


(Hristo Buyukliev) #2

Update: firefox fails, pip fails, wget fails, chromium works for some reason.


#3

That’s strange, because it’s a valid link in Firefox on my system.
I’ve searched this error and just came across one post stating it was the proxy’s fault.


(Hristo Buyukliev) #4

Don’t think that’s it, I should have the same IP in both firefox and chromium. Plus, a few months ago I had the same issue on a different network. The only thing I can guess, is that they filter requests in some way by user-agent AND location, so firefox-bulgaria is filtered, while chrome-bulgaria and firefox-russia are not.