解决ImportError: cannot import name ‘soft_unicode’ from 'markupsafe’问题
Superset安装遇到的问题
Traceback (most recent call last):
File "/venv/bin/superset", line 5, in <module>
from superset.cli import superset
File "/venv/lib/python3.7/site-packages/superset/__init__.py", line 18, in <module>
from flask import current_app, Flask
File "/venv/lib/python3.7/site-packages/flask/__init__.py", line 14, in <module>
from jinja2 import escape
File "/venv/lib/python3.7/site-packages/jinja2/__init__.py", line 33, in <module>
from jinja2.environment import Environment, Template
File "/venv/lib/python3.7/site-packages/jinja2/environment.py", line 15, in <module>
from jinja2 import nodes
File "/venv/lib/python3.7/site-packages/jinja2/nodes.py", line 19, in <module>
from jinja2.utils import Markup
File "/venv/lib/python3.7/site-packages/jinja2/utils.py", line 647, in <module>
from markupsafe import Markup, escape, soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe'
解决方式
python -m pip install markupsafe==2.0.1