简体   繁体   中英

How to install tensorflow on Mac?

I used pip install to install tensorflow on my mac. It shows like that: 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.

在此处输入图片说明

I don't know what happened. I tried to use sudo pip3 install --upgrade tfBinaryURL but it still has the same problem. I delete the folder of tensorflow, and installed it again, but the error still exists.

Maybe its a conflict between TensorFlow1.10 and your Mac OS version. Check this answer: Installing Tensorflow 1.10 on El Capitan 10.11.6

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM