module 'collections' has no attribute 'MutableMapping'
时间: 2023-09-08 09:09:19 浏览: 179
python的mysql数据查询及报错AttributeError: ‘Connection’ object has no attribute ‘curson’
在装live server时,出现了module 'collections' has no attribute 'MutableMapping'的错误。根据引用中的解决方案,这个问题是由于Python 3.10中的collections模块的结构发生了变化导致的。原本这些类的上级模块是collections,现在变成了abc。所以,解决这个问题的方法是需要将collections.MutableMapping改为abc.MutableMapping。这样就能正确引用MutableMapping类了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文