This is not a PyTorch issue (it’s actually not really a pip issue either as much as a Python standard library issue). If you are able to, the easiest solution is to update Python to a higher version in the 2.7 sequence (I believe this error means you have <2.7.9). If you’re not able to do that, there may be a way to update just the broken ssl module.
I got this problem when I was trying to install pytorch
ConnectionError: HTTPConnectionPool(host=‘download.pytorch.org’, port=80): Max retries exceeded with url: /whl/cu80/torch-0.1.12.post2-cp27-none-linux_x86_64.whl (Caused by NewConnectionError(‘<pip._vendor.requests.packages.urllib3.connection.HTTPConnection object at 0x7f3575aae2d0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))