Can not download the linux pip cud 8.0 compiled pytorch

I use pip to install however run into this error.

Traceback (most recent call last):
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/basecommand.py”, line 122, in main
status = self.run(options, args)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/commands/install.py”, line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/req.py”, line 1197, in prepare_files
do_download,
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/req.py”, line 1375, in unpack_url
self.session,
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/download.py”, line 546, in unpack_http_url
resp = session.get(target_url, stream=True)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 395, in get
return self.request(‘GET’, url, **kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/download.py”, line 237, in request
return super(PipSession, self).request(method, url, *args, **kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 383, in request
resp = self.send(prep, **send_kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py”, line 486, in send
r = adapter.send(request, **kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py”, line 385, in send
raise SSLError(e)
SSLError: [Errno 1] _ssl.c:510: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure

Storing debug log for failure in /home/gaop/.pip/pip.log

this is the script I use
pip install https://download.pytorch.org/whl/cu80/torch-0.1.10.post2-cp27-none-linux_x86_64.whl
pip install torchvision

It must be some kind of a network error at your side (maybe you don’t have some trusted SSL certificates installed)?

I had the same issue, seems to be SSL problem
See : https://github.com/kennethreitz/requests/issues/2022

Isemel answer :

sudo apt-get install libffi-dev
pip install pyOpenSSL ndg-httpsclient pyasn1

Worked for me