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/”, line 122, in main
status =, args)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/commands/”, 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/”, line 1197, in prepare_files
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/”, line 1375, in unpack_url
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/”, 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/”, line 395, in get
return self.request(‘GET’, url, **kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/”, 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/”, line 383, in request
resp = self.send(prep, **send_kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/”, line 486, in send
r = adapter.send(request, **kwargs)
File “/home/gaop/env/local/lib/python2.7/site-packages/pip/_vendor/requests/”, 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
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 :

Isemel answer :

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

Worked for me