【发布时间】:2017-11-28 13:27:26
【问题描述】:
我使用 Enthought Canopy 包管理器成功安装了 tensorflow 1.3.0-1。我没有做任何额外的步骤。 但是,当我尝试使用
导入时将张量流导入为 tf
我收到以下错误消息:
ImportError: Traceback(最近一次调用最后一次): 文件“/Users/Alex/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow.py”,第 41 行,在 从 tensorflow.python.pywrap_tensorflow_internal 导入 * 文件“/Users/Alex/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第 28 行,在 _pywrap_tensorflow_internal = swig_import_helper() 文件“/Users/Alex/Library/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”,第 24 行,在 swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, 路径名, 描述) ImportError: numpy.core.multiarray 导入失败
无法加载原生 TensorFlow 运行时。
有人可以帮助指导我并帮助找出我缺少的东西吗? 我对python很陌生。
谢谢。
亚历山德拉
【问题讨论】:
标签: macos tensorflow importerror canopy