Tensorflow:ImportError:无法导入名称pywrap_tensorflow

时间:2017-03-21 10:31:25

标签: python python-2.7 tensorflow importerror

我在Linux Kubuntu 14.4上并尝试安装

conda install -c conda-forge tensorflow=1.0.0

似乎有效。 import tensorflow as tf也适用于我的python代码。但是我在我的一个python模块(同一个项目)中调用了我的一个函数,在调用import tensorflow as tf时,我得到了错误

ImportError: cannot import name pywrap_tensorflow

Failed to load the native TensorFlow runtime.

See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

链接https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#import_error已经死了,我找到了https://github.com/benoitsteiner/tensorflow-opencl/blob/master/tensorflow/g3doc/get_started/os_setup.md,但我不太清楚这对我有什么帮助。

0 个答案:

没有答案