报错信息如下
Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 10, in <module> sys.exit(mitmproxy()) File "/Library/Python/3.7/site-packages/mitmproxy/tools/_main.py", line 147, in mitmproxy from mitmproxy.tools import console File "/Library/Python/3.7/site-packages/mitmproxy/tools/console/__init__.py", line 1, in <module> from mitmproxy.tools.console import master File "/Library/Python/3.7/site-packages/mitmproxy/tools/console/master.py", line 17, in <module> from mitmproxy import addons File "/Library/Python/3.7/site-packages/mitmproxy/addons/__init__.py", line 12, in <module> from mitmproxy.addons import onboarding File "/Library/Python/3.7/site-packages/mitmproxy/addons/onboarding.py", line 2, in <module> from mitmproxy.addons.onboardingapp import app File "/Library/Python/3.7/site-packages/mitmproxy/addons/onboardingapp/__init__.py", line 3, in <module> from flask import Flask, render_template File "/Library/Python/3.7/site-packages/flask/__init__.py", line 14, in <module> from jinja2 import escape File "/Library/Python/3.7/site-packages/jinja2/__init__.py", line 12, in <module> from .environment import Environment File "/Library/Python/3.7/site-packages/jinja2/environment.py", line 25, in <module> from .defaults import BLOCK_END_STRING File "/Library/Python/3.7/site-packages/jinja2/defaults.py", line 3, in <module> from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401 File "/Library/Python/3.7/site-packages/jinja2/filters.py", line 13, in <module> from markupsafe import soft_unicode ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/Library/Python/3.7/site-packages/markupsafe/__init__.py)
尝试卸载markupsafe 重新安装依然报这个错误预先格式化的文本
预先格式化的文本