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