当前位置:网站首页>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
边栏推荐
- Machine learning (formula derivation and code implementation)--sklearn machine learning library
- 浅聊缓存函数
- What are pseudo-classes and pseudo-elements?The difference between pseudo-classes and pseudo-elements
- 深度学习之 10 卷积神经网络2
- 【网络安全】Kail操作系统
- 【LeetCode】112. Path sum
- mysql数据库配置性能调优
- 013-Binary tree
- Flink Yarn Per Job - 提交应用
- Oracle数据库表空间整理回收与释放操作
猜你喜欢
pytorch one-hot tips
Chrome F12 keep before request information network
AD环境搭建
110道 MySQL面试题及答案 (持续更新)
Qt 下拉复选框(MultiSelectComboBox)(一) 实现下拉框多选,搜索下拉框内容
10分钟带你入门chrome(谷歌)浏览器插件开发
redis实现分布式锁的原理
机器学习(公式推导与代码实现)--sklearn机器学习库
STP生成树(端口状态+端口角色+收敛机制 )|||| STP优化技术( uplinkfast技术+Portfast技术+backbonefast技术 )详解
Flink Yarn Per Job - 启动AM
随机推荐
命令行加载特效 【cli-spinner.js】 实用教程
bihashSummary
STP普通生成树安全特性— bpduguard特性 + bpdufilter特性 + guard root 特性 III loopguard技术( 详解+配置)
qt使用mysql数据库(自学笔记)
常见STP生成树调整命令
力扣递归训练
cert-manager使用
【LeetCode】101.对称二叉树
oracle ASM磁盘空间的查看
Redis cluster concept and construction
深度学习之 10 卷积神经网络2
Batch PNG format can be converted to JPG format
gpnmb+ gpnmb-AT2 cell idling mapping Epithelial cell idling mapping
MySQL-DDL数据定义语言-约束
Flink Yarn Per Job - 提交应用
RSTP(端口角色+端口状态+工作机制)|||| 交换机接口分析
Partition table (1)
机器学习(公式推导与代码实现)--sklearn机器学习库
mysql数据库配置性能调优
多媒体数据处理实验4:LSH索引