while installing TF, exception appeared:
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/cachecontrol/adapter.py", line 46, in send resp = super(CacheControlAdapter, self).send(request, **kw) File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/adapters.py", line 447, in send raise SSLError(e, request=request) SSLError: ("bad handshake: Error([('SSL routines', 'SSL3_GET_SERVER_CERTIFICATE', 'certificate verify failed')],)",)
command: pip install --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
I have no clue how to solve this. I was recently reinstalled pip, could reinstall cause it?
SSL error can be solved by bellow steps for sure. Just download the wheel on your own and pip install.
# Ubuntu/Linux 64-bit, CPU only:
$ wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
$ sudo pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl
# Ubuntu/Linux 64-bit, GPU enabled:
$ wget https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
$ sudo pip install --upgrade tensorflow-0.5.0-cp27-none-linux_x86_64.whl
I used Anaconda to run "py -m pip install --upgrade tensorflow" and it worked.
I ran into this problem too, and in my case using curl to download manually didn't fix the problem. Curl reported this:
The problem in my case turns out to have been my VM's clock – it was way behind. Resetting my VM's clock so the datetime was correct fixed the problem, and I was able to go right back to installing straight from pip.
I've added this note to a related GitHub issue filed for TensorFlow. This Unix StackExchange question ultimately led me to the answer.
This command worked for me
I made the request as http instead of https and I was able to bypass the ssl check. Hope this helps.
I think you need some security certificates.
Please try the following command.
If you get any error message, please uninstall and reinstall python-requests.
I hoped it will give you the certificates you need. Thanks.
Use the following version of certifi
after that there will be no more SSL errors.
Solution was found here: https://github.com/kennethreitz/requests/issues/3212