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即可。