我想在我的Mac上使用TensorFlow和PyCharm,但是当我使用时:
pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
它出错了:
Exception:
Traceback (most recent call last):
File "/Users/urAD_Jeff/anaconda/lib/python2.7/site-packages/pip/basecommand.py", line 211, in main
status = self.run(options, args)
.
.
.
File "/Users/urAD_Jeff/anaconda/lib/python2.7/site-packages/pip/_vendor/requests/adapters.py", line 431, in send
raise SSLError(e, request=request)
SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)
我该如何解决?
答案 0 :(得分:2)
我通过运行以下内容来安装documentation
建议的virtualenv设置brew install python
# On Mac:
$ sudo easy_install pip # If pip is not already installed
$ sudo pip install --upgrade virtualenv
$ virtualenv --system-site-packages ~/tensorflow
$ cd ~/tensorflow
$ source bin/activate # If using bash
$ source bin/activate.csh # If using csh
(tensorflow)$ # Your prompt should change
从google下载使用curl获取最新版本的tensorflow
curl -O https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
安装您下载的软件包
pip install tensorflow-0.5.0-py2-none-any.whl
你应该可以输入python
并在python终端中试用tensorflow
答案 1 :(得分:0)
安装Tensor流程时Mac中的另一个常见问题是Protobuf版本。
请确保您有protobuf 3.0.0a3或更高版本。
感谢Github Issue on Tensorflow使用自制软件安装
brew install --devel protobuf
要验证,请运行
pip show numpy protobuf