问题遇到的现象和发生背景
pandas可以打开excel,但是在打包后不能打开,指定engine为openpyxl或1.2.0版本的xlrd,在编辑器中可运行,然而均不能在打包后正常运行
问题相关代码,请勿粘贴截图
data = pd.read_excel(self.base_path + '/' + excel_name)
运行结果及报错内容
不指定engine:
Excel file format cannot be determined, you must specify an engine manually
指定openpyxl,报错信息为:
zipfile.BadZipFile: File is not a zip file
指定xlrd(1.2.0),报错信息为:
xlrd.biffh.XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'b\x14#e\xbc\x01D\x00'