当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
【LeetCode】622.设计循环队列
慢 SQL 分析与优化
【LeetCode】112.路径总和
【LeetCode】226.翻转二叉树
10 minutes to get you started chrome (Google) browser plug-in development
响应式布局经典范例——巨幅背景大标题
STP生成树选举结果查看及验证
xtrabackup
Flink Yarn Per Job - Submit application
Alibaba Cloud SMS Sending
MySQL-存储过程-函数-
Oracle 数据如何迁移到MySQL 图文详细教程
【LeetCode】101.对称二叉树
mysql数据库配置性能调优
MySQL 主从切换步骤
Chrome F12 keep before request information network
【LeetCode】zj面试-把字符串转换成整数
SQL试题
Promise 一: 基本问题
redis实现分布式锁的原理









