Solve the "ImportError: cannot import name 'soft_unicode' from 'markupsafe'" error

ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Users\86187\AppData\Roaming\Python\Python310\site-packages\markupsafe\__init__.py)

According to the error message, we found that the error was caused by importing the markupsafe library

Re-download pip install markupsafe==2.0.1

Solve the error.

Guess you like

Origin blog.csdn.net/m0_62218217/article/details/130409121