当前位置:网站首页>ImportError: DLL load failed with error code -1073741795
ImportError: DLL load failed with error code -1073741795
2022-08-03 09:33:00 【Data+Science+Insight】
ImportError: DLL load failed with error code -1073741795
目录
ImportError: DLL load failed with error code -1073741795
问题:
tensorflow导入发生错误
import tensorflow
Traceback (most recent call last):
File "C:\Users\Administrator\venv\lib\site-packages\tensorflow\python\pywrap_t
ensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Administrator\venv\lib\site-packages\tensorflow\python\pywrap_t
ensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Administrator\venv\lib\site-packages\tensorflow\python\pywrap_t
ensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\Administrator\venv\lib\imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Administrator\venv\lib\imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: DLL load failed with error code -1073741795
解决:
tensorflow版本1.6及以上需要CPU包含AVX指令集。如果没有则tensorflow无法加载。
有的CPU就是没有AVX指令集,那么我们需要把tensorflow的版本降低到1.6一下。
TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets.
Therefore on any CPU that does not have these instruction sets, either CPU or GPU version of TF will fail to load.
完整错误:
参考:https://github.com/tensorflow/tensorflow/issues/35409
参考:DLL load failed with error code -1073741795 Tensorflow - Stack Overflow
参考:在不支持avx指令集的cpu上部署tensorflow及keras._babytiger的博客-CSDN博客_不支持avx的cpu
边栏推荐
猜你喜欢
随机推荐
scala减少,reduceLeft reduceRight,折叠,foldLeft foldRight
10 minutes to get you started chrome (Google) browser plug-in development
Chrome F12 keep before request information network
箭头函数与普通函数的区别
机器学习(公式推导与代码实现)--sklearn机器学习库
AUC的两种计算方式
php中去重二维数组
System io statistics
GO开发环境配置
mysql数据库配置性能调优
Go操作Redis数据库
Redis实现分布式锁
go中select语句
Does setting the following sysctl settings require a system reboot?
015-平衡二叉树(一)
批量将PNG格式转化为JPG格式
STP生成树选举结果查看及验证
MySQL——几种常见的嵌套查询
【字节面试】word2vector输出多少个类别
milvus