0
点赞
收藏
分享

微信扫一扫

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法


​D:\work\python3.9_64\lib\site-packages\openpyxl\worksheet\_reader.py:312: UserWarning: Data Validation extension is not supported and will be removed warn(msg)​

报错内容译: 不支持数据验证扩展,将被删除。

解决方法: 去掉 Excel 里的数据验证功能。

Excel 数据验证关闭方法:

有几个报错就是有几处数据验证,目前只能一个一个 sheet 页签使用定位条件功能进行排查。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_python

直接在菜单或通过 F5 打开定位窗口,选择定位条件。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_数据验证_02

然后选中数据验证,如果能查到内容就是数据验证了。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_f5_03

然后点击菜单的数据验证。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_python_04

点击确定。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_openpyxl读取excel_05

再点击确定就删除完毕了。

openpyxl库由于不支持数据验证扩展导致的读取excel报“Data Validation extension is not supported and will be removed“错解决方法_python_06

然后再使用 openpyxl 读取 excel 就没问题了。

喜欢的点个赞❤吧!



举报

相关推荐

0 条评论