module 'pandas' has no attribute 'compat'
时间: 2023-08-01 11:12:43 浏览: 286
根据引用\[1\]和引用\[2\]的描述,出现"module 'pandas' has no attribute 'compat'"的错误可能是由于循环导入或版本不兼容引起的。一种解决方法是尝试降低或升级pandas的版本。你可以尝试降低pandas的版本,或者升级到最新版本,看看是否能够解决问题。另外,根据引用\[3\]的描述,还有可能是由于存在名为pandas的空包导致的错误。你可以检查一下是否存在这样的空包,并尝试删除重新下载pandas包来解决问题。
#### 引用[.reference_title]
- *1* [AttributeError: partially initialized module ‘pandas‘ has no attribute ‘Series‘ (most likely due...](https://blog.csdn.net/weixin_45970532/article/details/118034506)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ No module named '_bz2'和AttributeError: module 'pandas' has no attribute 'co...](https://blog.csdn.net/donggong5615/article/details/101948350)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [AttributeError: module ‘pandas‘ has no attribute ‘read_excel‘问题解决记录](https://blog.csdn.net/weixin_51181261/article/details/124084365)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文