Win7系统 利用 pycharm导入Tensorflow失败,出现报错——ImportError:DLL load failed with error code -1073741795的解决方式

在Win7系统下,使用PyCharm导入TensorFlow时遇到DLL加载失败(-1073741795)的错误。尝试多种网上方法未果后,通过降低TensorFlow版本到1.5并确保所有依赖正确安装解决了问题。详细步骤包括卸载TensorFlow,指定版本安装,关闭并重启PyCharm。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下面的报错信息困扰了一天,网上的各种方法也都试过了,还是失败,最后自己瞎试,把问题给解决了,希望能给遇到同样问题的人一个借鉴

具体报错信息如下:

Traceback (most recent call last):
File "C:\Users\Nhan\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Nhan\AppData\Local\Programs\Python\Python35\lib\importlib_init_.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 906, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed with error code -1073741795

评论 12
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值