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即可。
posted on 2022-01-26 18:25 wenbin_ouyang 阅读(2707) 评论(0) 编辑 收藏 举报