Python读取excel xlrd读取xlsx报错:Excel xlsx file; not supported


Python读取excel xlrd读取xlsx报错:Excel xlsx file; not supported
 

问题描述

Python 使用 xlrd 读取excel xlsx 文件的时候报错
 
发生异常: XLRDError (note: full exception trace is shown but execution is paused at: <module>)
Excel xlsx file; not supported
File "C:\Users\XQ-Garson\Desktop\Python\gz\run_positionbyxls.py", line 68, in <module> (Current frame) data = xlrd.open_workbook(fileName) # 打开xls文件
 
Python读取excel

原因分析

python 插件 xlrd 在因为 1.2.0后面得版本 取消 了对 xlsx 文件得读取,那么我们把版本号换到以前得可以读取得版本就可以了!

对,就是这么简单!

解决方案

卸载 现在的 xlrd 重新安装 xlrd 指定版本位 1.2.0

PowerShell 全选
# 卸载 xlrd
pip uninstall xlrd
# 安装 1.2.0 版本的 xlrd
pip install xlrd==1.2.0

 

 
 
版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
管理员
上一篇:Python暂停程序执行
下一篇:selenium爬虫被检测到 该如何破
评论列表

发表评论

评论内容
昵称:
验证码:
验证码
关联文章

Python读取excel xlrd读取xlsxExcel xlsx file; not supported
.NETCore 运行项目:Could not load file or assembly ***
.NET Core中使用编码GB2312‘GB2312‘ is not a supported encoding name 解决方案
Python多线程中试用wmi
.Net启动程序:It was not possible to find any compatible framework version
Python使用html解析包Requests-html运行py文件没问题,Pyinstaller打包exe后运行
Python读取文件 发生异常: UnicodeDecodeError 'gbk' codec can't decode byte
Python windows服务: Installing service ALicense Error installing service: 拒绝访问
插入代码页面
NPOI 读取EXCEL(2003,2007)并转换为DataTable
支付宝获取用户信息时,提示 对不起,访问出了 E004:AUTH_REDIRECT_URL_NOT_IN_WHITE
Visual Studio (VS) 使用Gulp ReferenceError: primordials is not defined
EFCore异步查询
C#HTTP请求RestSharp.RestClient发起https请求
Python Windows服务
vue typescript 使用big.js编译build会
Python windows服务: 1053:服务没有及时响应启动或控制请求
.NET Core Winform 打开窗体设计器
WCF中常见的:The content type text
EFCore链接数据库

热门标签
.NET Core .NET Reactor ag-grid AI发布 api安全 ASP.NET Core C#DLL加密 C#播放声音 C#代码混淆 C#代码加密 ChromeDriver Codex DateTime DBeaver devexpress devTool DLL混淆 edge.js EF EFCore Electron element-ui el-form el-table excel FastReport FileStream FolderBrowerDialog FolderSelectDialog form提交 git gridcontrol gridview input javascript json字符串 JS转换对象JSON jwt JWT授权 linq log Math MCP mitmproxy MVC MySQL Navicat netstat nginx node_modules NSwag Nuget Nuget镜像 number PowerShell pyinstaller python pythoncom python爬虫 python抓包 pywin32 redis Requests-html RestSharp Selenium sql SQL Server Swagger to-cms Visual Studio VSCode vue VueRouter vue路由 VUE页面通讯 Webpack Windows Windows服务 winform wmi xlrd yaml YESCMS YESWEB开发框架 白象 表单提交 播放声音 打开URL 代码混淆 弹窗提醒 端口占用 对象转换 分布式 公共字典 机器码 进程排查 静态资源 开发指南 路由参数 密钥 配置教程 配置文件 权限 人工智能 任务 任务调度 日期间隔 日志 日志记录 省市区 授权验证 数据库 四舍五入 文案 文件读取 文件夹选择 文件目录选择 问题排查 行政区域数据 页面通讯 中间件 CSharp 事务锁 工单系统 并发控制 重复提交 CMS Markdig Markdown markdown-it marked 技术选型 VS Code 开发工具 源代码管理 版本控制 Docker PostgreSQL 时区 部署排查 CMS架构 EF Core 主题系统 二次开发 插件系统 容器 运维命令 镜像清理 Linux NAS 远程挂载 飞牛 fnOS S/4HANA SAP GUI SAP HANA SAP R/3 SAP入门 SAP版本 ERP SAP SAP MM 库存管理 物料管理 采购管理 入门教程 SAP S/4HANA SPRO 企业结构 采购组织 MM01 物料主数据 物料类型 BP分组 业务伙伴 供应商主数据 ME41 RFQ 库存物料 采购流程 ME51 消耗性物料 科目分配 采购申请 AC03 ML81N 外部服务 服务主数据 Business Partner SAP培训
联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码