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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
  • 2021-04-28
  • 2021-09-09
  • 2021-08-06
猜你喜欢
  • 2021-07-15
  • 2021-08-04
  • 2022-01-02
  • 2021-09-10
  • 2021-11-06
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案