我用过pip 安装 JupyterLab在我运行 Pop!_OS 的机器上。安装成功,但当我尝试运行该程序时,出现以下错误:
Traceback (most recent call last):
File "/home/foof/.local/bin/jupyter-lab", line 5, in <module>
from jupyterlab.labapp import main
File "/home/foof/.local/lib/python3.10/site-packages/jupyterlab/labapp.py", line 11, in <module>
from jupyter_core.application import JupyterApp, NoStart, base_aliases, base_flags
File "/home/foof/.local/lib/python3.10/site-packages/jupyter_core/application.py", line 16, in <module>
from traitlets import Bool, List, Unicode, observe
File "/home/foof/.local/lib/python3.10/site-packages/traitlets/__init__.py", line 5, in <module>
from ._version import __version__, version_info
File "/home/foof/.local/lib/python3.10/site-packages/traitlets/_version.py", line 7, in <module>
assert __version__ == (
AssertionError
我已经重新安装了 Python 和 pip,但总是出现相同的错误。有什么指示吗?
答案1
看起来答案是改变特质版本编辑
~/.local/lib/python3.10/site-packages/traitlets/_version.py
读书:
version_info = (5, 2, 2)
__version__ = "5.2.2"