import tensorflow 出现DLL load failed: 找不到指定模块\Failed to load the native TensorFlow runtime\ERROR:root:Internal Python error in the inspect module问题的解决方法
一、在Python命定行下,import tensorflow 出现错误
ImportError: DLL load failed: 找不到指定的模块。
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
方法1
如果你是使用Anconda命令行的pip install tensorflow2.1.0,则需要使用conda install tensorflow2.1.0。下载所需要的驱动。
方法2
如果方法1不行,则可能是tensorflow的库有错误,需要pip uninstall tensorflow,在pip install tensorflow==2.1.0。
二、在jupyter nootebook中import tensorflow as tf 出现错误。
ERROR:root:Internal Python error in the inspect module. Below is the traceback from this
internal error. ERROR:root:Internal Python error in the inspect module. Below is the
traceback from this internal error
方法1
先检查是否在安装tensorflow的环境下,启动jupyter nootebook。
方法2
如果方法1不行,可能是在安装2.1.0版本程序包没有安装Microsoft VC++ downloads,下载安装包并下载并安装,即可成功导入Tensorflow。
百度网盘1 提取码:vc31
百度网盘2提取码:7wy9