import tensorflow 出现DLL load failed: 找不到指定模块\Failed to load the native TensorFlow runtime问题等的解决方法

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值