AttributeError: module 'collections' has no attribute 'MutableMapping'
时间: 2023-09-03 15:10:26 浏览: 178
出现这个错误是因为在Python 3.10中,一些模块的位置发生了变化。以前属于collections模块的MutableMapping、MutableSet等现在被移动到了abc模块中。因此,你需要将代码中的collections.MutableMapping替换为abc.MutableMapping来解决这个问题。这样做可以确保你的代码在新版本的Python中仍然能够正常运行。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [AttributeError: module ‘collections‘ has no attribute ‘MutableMapping](https://blog.csdn.net/lishuaigell/article/details/125221750)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [python, sqlmap报错 AttributeError: module ‘collections‘ has no attribute ‘Callable](https://blog.csdn.net/K_essi/article/details/126047493)[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^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文