Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/allen/.local/lib/python3.8/site-packages/open3d/__init__.py", line 113, in <module> import open3d.visualization File "/home/allen/.local/lib/python3.8/site-packages/open3d/visualization/__init__.py", line 19, in <module> from .draw_plotly import draw_plotly File "/home/allen/.local/lib/python3.8/site-packages/open3d/visualization/draw_plotly.py", line 12, in <module> from dash import html File "/home/allen/.local/lib/python3.8/site-packages/dash/__init__.py", line 5, in <module> from .dependencies import ( # noqa: F401,E402 File "/home/allen/.local/lib/python3.8/site-packages/dash/dependencies.py", line 4, in <module> from ._validate import validate_callback File "/home/allen/.local/lib/python3.8/site-packages/dash/_validate.py", line 5, in <module> import flask File "/usr/lib/python3/dist-packages/flask/__init__.py", line 14, in <module> from jinja2 import escape ImportError: cannot import name 'escape' from 'jinja2' (/home/allen/.local/lib/python3.8/site-packages/jinja2/__init__.py)
时间: 2023-08-18 07:07:33 浏览: 171
浅谈Python traceback的优雅处理
这是一个错误提示,指出在导入模块时出错了。具体来说,这是在导入 Flask 模块时出现了错误,因为 Flask 模块依赖于 Jinja2 模块,但是导入 Jinja2 模块时出错了。该错误消息指出,Jinja2 模块中缺少名为 'escape' 的属性。这可能是由于版本不兼容或安装不完整等原因引起的。您可以尝试重新安装 Jinja2 模块,或者检查您的 Python 环境中是否存在其他版本的 Jinja2 模块。
阅读全文