在Windows上,TensorFlow在执行import tensorflow
语句后报告以下错误中的一个或两个:
No module named "_pywrap_tensorflow"
DLL load failed.
我正在从源代码构建TensorFlow.构建似乎成功; 但是,当我的TensorFlow程序调用时import tensorflow
,会出现以下一个或两个错误:
ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory
ImportError: libcudnn.5: cannot open shared object file: No such file or directory
尝试运行TensorFlow程序时遇到以下错误:
ImportError: libcudnn.Version: cannot open shared object file: No such file or director
尽管使用sudo
,该pip install
命令有时会生成类似于以下内容的错误:
... Installing collected packages: setuptools, protobuf, wheel, numpy, tensorflow Found existing installation: setuptools 1.1.6 Uninstalling setuptools-1.1.6: Exception: … [Errno 1] Operation not permitted: '/tmp/pip-a1DXRT-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/_markerlib'
安装TensorFlow时出现以下错误:
ImportError:追溯(最近一次呼叫最近): 文件“ ... / graph_pb2.py”,第6行,在 从google.protobuf导入描述符为_descriptor ImportError:无法导入名称“描述符”
tensorflow ×5