【发布时间】:2019-01-07 01:40:14
【问题描述】:
我按照 tensorflow 网站的说明使用 virtualenv 进行安装,在 python 交互式 shell 中使用 import tensorflow as tf 验证安装时遇到以下问题。
请注意,我正在运行 Python 3.7
有人可以帮忙吗?
我还尝试使用pip uninstall protobuf 删除stackoverflow issue 建议的protobuf,但没有帮助。
【问题讨论】:
-
您是否尝试过
pip3 uninstall protobuf、brew uninstall protobuf并重新安装 TensorFlow? -
是的,已尝试多次卸载 protobuf 和 tensorflow,但没有成功。默认情况下,我安装 tensorflow 时会安装 protobuf。
pip3 install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.9.0-py3-none-any.whl
标签: macos tensorflow