[英]Failed to load the native TensorFlow runtime. Downloaded anaconda 3-5.2
I installed anaconda 3-5.2 from the anaconda install archive and I can't seem to get tensorflow working.我从 anaconda 安装档案中安装了 anaconda 3-5.2,但我似乎无法让 tensorflow 工作。 When I try to import it this is the error message I get.
当我尝试导入它时,这是我收到的错误消息。 I recently updated brew and deleted anaconda and reinstalled it also.
我最近更新了 brew 并删除了 anaconda 并重新安装了它。
ImportError: Traceback (most recent call last):
File "/Users/admin/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/Users/admin/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/Users/admin/.local/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/Users/admin/usr/local/opt/anaconda3/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/Users/admin/usr/local/opt/anaconda3/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: dlopen(/Users/admin/.local/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so, 10): Library not loaded: @rpath/libcublas.8.0.dylib
Referenced from: /Users/admin/.local/lib/python3.6/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so
Reason: image not found
Failed to load the native TensorFlow runtime.无法加载本机 TensorFlow 运行时。
See https://www.tensorflow.org/install/install_sources#common_installation_problems请参阅https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions.出于一些常见的原因和解决方案。 Include the entire stack trace above this error message when asking for help.
寻求帮助时,请在此错误消息上方包含整个堆栈跟踪。
您需要使用conda install tensorflow
进行conda install tensorflow
以便conda install tensorflow
cuda 和 cudnn 库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.