ubuntu安装tensorflow时使用pip安装时出现SSLError[已解决]

来源:互联网 发布:盛势网络剧台湾未删减 编辑:程序博客网 时间:2024/05/20 09:23

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


SSLError: SSL_VERIFY_FAILED

If, during pip install from a URL, you encounter an error like:


SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
Solution: Download the wheel manually via curl or wget, and pip install locally.

0 0
原创粉丝点击