问题描述
目前使用 python3.8 和 Flask==1.1.2
,各种包安装完成后,运行脚本,报错:
1
ImportError: cannot import name 'json' from itsdangerous
解决办法
查看 itsdangerous 的版本:
1
> pip show itsdangerous
更新 itsdangerous 版本为 2.0.1。
操作步骤
(1)先卸载已经安装的 itsdangerous
1
pip uninstall itsdangerous
(2)安装 2.0.1 版本
1
pip install itsdangerous==2.0.1
相关链接:
导入错误:无法从 itsdangerous 导入名称“json”