当前位置:网站首页>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
边栏推荐
猜你喜欢
Redis cluster concept and construction
RSTP(端口角色+端口状态+工作机制)|||| 交换机接口分析
基于百度AI和QT的景物识别系统
10 minutes to get you started chrome (Google) browser plug-in development
10分钟带你入门chrome(谷歌)浏览器插件开发
Chrome F12 keep before request information network
LINGO 18.0 software installation package download and installation tutorial
When deleting a folder, the error "Error ox80070091: The directory is not empty" is reported. How to solve it?
013-Binary tree
015-平衡二叉树(一)
随机推荐
MySQL 主从切换步骤
SQL试题
删除文件夹时,报错“错误ox80070091:目录不是空的”,该如何解决?
浅聊缓存函数
分区分表(一)
【LeetCode】622. Design Circular Queue
cmd(命令行)操作或连接mysql数据库,以及创建数据库与表
Redis集群概念与搭建
Apple Silicon配置二进制环境(二)
命令行加载特效 【cli-spinner.js】 实用教程
oracle中的rownum函数
flush tables
自动化测试浏览器驱动下载版本对应关系
Partition table (1)
验证浮点数输入
兔起鹘落全端涵盖,Go lang1.18入门精炼教程,由白丁入鸿儒,全平台(Sublime 4)Go lang开发环境搭建EP00
批量将PNG格式转化为JPG格式
多媒体数据处理实验4:LSH索引
深度学习之 10 卷积神经网络1
flutter 应用 抓包