繁体   English   中英

无法加载本机 TensorFlow 运行时。?

[英]Failed to load the native TensorFlow runtime.?

我正在尝试导入 tensorflow,但是每次我import tensorflow我都会收到这个烦人的错误,它说“无法加载本机 TensorFlow 运行时”。 我已经查看了我的错误https://www.tensorflow.org/install/errors但我没有找到我的答案但我可能错过了但是....

我的错误:

ImportError: Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 64, in <module>
    from tensorflow.python._pywrap_tensorflow_internal import *
ImportError: DLL load failed: The specified module could not be found.

如果我在控制台中执行pip install tensorflow ,我也使用了pip install tensorflow我得到“要求已经满足:c:\\programdata\\anaconda3\\lib\\site-packages (2.3.1) 中的import tensorflow ”但是当我import tensorflow我得到我的Import Error

我的 pip 版本也是 20.2.4

我想出了如何为我做我只需要做的: pip install tensorflow==1.15

您正在使用 Anaconda 它将支持

Tensorflow == 2.1.0

为 tensorflow 创建一个新环境

conda create -n tf tensorflow
activate tf

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM