我在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但是我不太明白这对我有什么帮助 .