Error - import name 'soft_unicode' from 'markupsafe'

创建日期: 2023-03-09 10:55 | 作者: 风波 | 浏览次数: 12 | 分类: Python

启动服务报错:Can not import name 'soft_unicode' from 'markupsafe'

解决方案

This is caused by upgrade in MarkupSafe:2.1.0 where they have removed soft_unicode, try using:

pip install markupsafe==2.0.1

但是 werkzeug 依赖于 markupsafe>2.1.1,所以尝试 werkzeug 先降低版本,然后再把

来源:https://stackoverflow.com/questions/72593814/cannot-import-name-soft-unicode-from-markupsafe-in-google-colab

12 浏览
8 爬虫
0 评论