SSLError using pip install (to install tensorflow)

2019-04-21 20:30发布

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?

7条回答
手持菜刀,她持情操
2楼-- · 2019-04-21 21:15

For those working on macOS run from a terminal window..

- /Applications/Python\ 3.6/Install\Certificates.command
查看更多
登录 后发表回答