PS E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab> python app.py
Traceback (most recent call last):
File "E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab\app.py", line 10, in
from flask import Flask, request, render_template, render_template_string
File "C:\Python310\lib\site-packages\flask__init.py", line 14, in
from jinja2 import escape
File "C:\Python310\lib\site-packages\jinja2__init__.py", line 12, in
from .environment import Environment
File "C:\Python310\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Python310\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Python310\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Python310\lib\site-packages\markupsafe\init__.py)
这个报错是为什么?
PS E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab> python app.py Traceback (most recent call last): File "E:\VSCode\CTF\03丨学习测试\SSTI\sstilabs-master\flasklab\app.py", line 10, in
from flask import Flask, request, render_template, render_template_string
File "C:\Python310\lib\site-packages\flask__init.py", line 14, in
from jinja2 import escape
File "C:\Python310\lib\site-packages\jinja2__init__.py", line 12, in
from .environment import Environment
File "C:\Python310\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Python310\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Python310\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Python310\lib\site-packages\markupsafe\ init__.py)
这个报错是为什么?