cannot import name 'MutableMapping' from 'collections'


 https://stackoverflow.com/questions/70013988/importerror-cannot-import-name-mutablemapping-from-collections-usr-local

 

今天部署 kotlin-web-site-master 使用python flask时,报错cannot import name 'MutableMapping' from 'collections'。python环境为3.10。

pip install --no-cache-dir -r requirements.txt

  requirements.txt

flask==1.0
flask-flatpages==0.6
frozen-flask==0.12
Pygments==2.7.4
python-frontmatter==0.2.1
beautifulsoup4==4.5.1
xmltodict==0.10.2

ruamel.yaml==0.17.9
PyYAML==5.4.1
algoliasearch==1.12.0
google-api-python-client==1.6.2

  python环境改为3.9即可。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM