安装TF时出现异常:
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
我不知道怎么解决这个问题。我最近重新安装了pip,能重新安装吗?
对于那些在终端窗口运行macOS的人。。
SSL错误肯定可以通过以下步骤解决。只需自己下载控制盘并安装pip。
#Ubuntu/Linux 64位,仅限CPU:
$wgethttps://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
$sudo pip install——升级tensorflow-0.5.0-cp27-none-linux_x86_64.whl
Ubuntu/Linux 64位,启用GPU:
$wgethttps://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
$sudo pip install——升级tensorflow-0.5.0-cp27-none-linux_x86_64.whl
使用以下版本的certifi
在此之后,将不再有SSL错误。
在此处找到解决方案: https://github.com/kennethreitz/requests/issues/3212
相关问题 更多 >
编程相关推荐