当前位置: 首页 > 工具软件 > TZInfo > 使用案例 >

jupyer notebook import pandas--pd.read_excel报错问题: No module named ‘pytz.tzinfo‘ not built

冯嘉珍
2023-12-01

jupyter notebook 调用

pd.read_excel()

报错:

ImportError: C extension: No module named ‘pytz.tzinfo’ not built. If you want to import pandas from the source directory, you may need to run ‘python setup.py build_ext --inplace --force’ to build the C extensions first.

在网上尝试了许多方法—都失败。最终解决办法:

pip uninstall pytz

pip install --pre pytz

成功解决√

感谢此处的大佬
https://github.com/sequana/sequana/issues/499

 类似资料: