白木兰 2020-04-22 09:22 采纳率: 33.3%
浏览 1616
已结题

Anaconda3+python3.7 +TensorFlow 2.1,安装成功,但是在IDLE和pycharm中引入出现如下错误,请问如何才能解决?

Traceback (most recent call last):
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "F:\Anaconda\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "F:\Anaconda\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
import tensorflow
File "F:\Anaconda\lib\site-packages\tensorflow__init__.py", line 101, in
from tensorflow_core import *
File "F:\Anaconda\lib\site-packages\tensorflow_core__init__.py", line 40, in
from tensorflow.python.tools import module_util as module_util
File "F:\Anaconda\lib\site-packages\tensorflow\
_init__.py", line 50, in getattr
module = self._load()
File "F:\Anaconda\lib\site-packages\tensorflow__init__.py", line 44, in load
module = _importlib.import_module(self.
_name__)
File "F:\Anaconda\lib\importlib__init__.py", line 127, in import_module
return bootstrap._gcd_import(name[level:], package, level)
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\
_init__.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "F:\Anaconda\lib\site-packages\tensorflow_core\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "F:\Anaconda\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "F:\Anaconda\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: 找不到指定的模块。

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

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

  • 写回答

1条回答

  • threenewbee 2020-04-22 13:29
    关注

    兼容性问题,比如cpu太老、tf版本太高、cuda cudnn没有安装对
    tf没有安装对等等
    比如
    https://blog.csdn.net/qq_27276951/article/details/85942108

    评论

报告相同问题?

悬赏问题

  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题