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 6
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 2’, 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?