【发布时间】:2019-01-16 19:55:55
【问题描述】:
我正在尝试在 Mac OSX 10.11.6 (El Capitan) 上使用 python 和 anaconda 导入 tensorflow。我已按照 tensorflow.org 上有关使用 anaconda 进行安装的说明如下:
conda create -n tensorflow pip python=3.6
source activate tensorflow
sudo -H pip3 install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.10.0-py3-none-any.whl
然后启动python,输入import tensorflow,报错:
ImportError: dlopen(/anaconda3/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 6): Symbol not found: _SecKeyCopyExternalRepresentation
随后出现更多类似错误,导致无法加载原生 tensorflow 运行时。
任何帮助将不胜感激!
【问题讨论】:
-
您为什么不直接使用
sudo pip3 install tensorflow,它会自动为您下载最新版本。或者你甚至可以指定版本。 -
谢谢,我也试过了,但似乎不能解决问题。
-
那之后你遇到了什么错误?
标签: python tensorflow anaconda