如何在Mac上安装tensorflow?

时间:2018-08-27 02:44:56

标签: tensorflow

我用pip install在Mac上安装了tensorflow。它显示为:Successfully installed numpy-1.14.5 setuptools-39.2.0 tensorboard-1.10.0 tensorflow-1.10.1。 但是,当我打开python并尝试进行import tensorflow时,会发生错误。

enter image description here

我不知道发生了什么。 我尝试使用sudo pip3 install --upgrade tfBinaryURL,但仍然存在相同的问题。我删除了tensorflow文件夹,然后再次安装,但错误仍然存​​在。

2 个答案:

答案 0 :(得分:0)

也许TensorFlow1.10与您的Mac OS版本之间存在冲突。检查以下答案:Installing Tensorflow 1.10 on El Capitan 10.11.6

答案 1 :(得分:0)

对我来说,这解决了以下问题:python3 -m pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl

相关问题