[英]How to install tensorflow on Mac?
I used pip install
to install tensorflow on my mac. 我使用pip install
在Mac上安装tensorflow。 It shows like that: Successfully installed numpy-1.14.5 setuptools-39.2.0 tensorboard-1.10.0 tensorflow-1.10.1
. 它显示如下: Successfully installed numpy-1.14.5 setuptools-39.2.0 tensorboard-1.10.0 tensorflow-1.10.1
。 But when I open python, and try to import tensorflow
, it occurs an error. 但是当我打开python并尝试import tensorflow
,会发生错误。
I don't know what happened. 我不知道发生了什么 I tried to use sudo pip3 install --upgrade tfBinaryURL
but it still has the same problem. 我试图使用sudo pip3 install --upgrade tfBinaryURL
但是它仍然有相同的问题。 I delete the folder of tensorflow, and installed it again, but the error still exists. 我删除了tensorflow文件夹,并再次安装了它,但是错误仍然存在。
Maybe its a conflict between TensorFlow1.10 and your Mac OS version. TensorFlow1.10与您的Mac OS版本之间可能存在冲突。 Check this answer: Installing Tensorflow 1.10 on El Capitan 10.11.6 检查此答案: 在El Capitan 10.11.6上安装Tensorflow 1.10
对我来说,这解决了这个问题: python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.