无法从 'jupyterlab_server' 导入名称 'WORKSPACE_EXTENSION'
Cannot import name 'WORKSPACE_EXTENSION' from 'jupyterlab_server'
更新到最近的jupyter_server
(1.13.1)后,当我进入
jupyter lab
我明白了
Traceback (most recent call last):
File "/usr/local/bin/jupyter-lab", line 5, in <module>
from jupyterlab.labapp import main
File "/usr/local/lib/python3.9/site-packages/jupyterlab/__init__.py", line 7, in <module>
from .labapp import LabApp
File "/usr/local/lib/python3.9/site-packages/jupyterlab/labapp.py", line 18, in <module>
from jupyterlab_server import WORKSPACE_EXTENSION, LabServerApp, slugify
ImportError: cannot import name 'WORKSPACE_EXTENSION' from 'jupyterlab_server' (/usr/local/lib/python3.9/site-packages/jupyterlab_server/__init__.py)
我该如何纠正这个问题?我是否安装了不兼容的软件包版本?
Python 3.9.9 (main, Nov 21 2021, 03:23:42)
[Clang 13.0.0 (clang-1300.0.29.3)]
jupyter-client 7.1.0
jupyter-core 4.9.1
jupyter-kite 2.0.2
jupyter-server 1.13.1
jupyter-server-mathjax 0.2.3
jupyterlab 3.2.5
jupyterlab-git 0.34.0
jupyterlab-kite 2.0.2
jupyterlab-pygments 0.1.2
jupyterlab-server 2.10.0
jupyterlab-server
版本 2.10.0
有一个意外的重大更改,已在 2.10.1
中修复。要解决此问题,请升级到 2.10.1
(或更新版本):
pip install jupyterlab-server>=2.10.1
使用 conda-forge
的 conda 安装应该不会受到影响,因为 2.10.0
从未在那里发布过。
更新到最近的jupyter_server
(1.13.1)后,当我进入
jupyter lab
我明白了
Traceback (most recent call last):
File "/usr/local/bin/jupyter-lab", line 5, in <module>
from jupyterlab.labapp import main
File "/usr/local/lib/python3.9/site-packages/jupyterlab/__init__.py", line 7, in <module>
from .labapp import LabApp
File "/usr/local/lib/python3.9/site-packages/jupyterlab/labapp.py", line 18, in <module>
from jupyterlab_server import WORKSPACE_EXTENSION, LabServerApp, slugify
ImportError: cannot import name 'WORKSPACE_EXTENSION' from 'jupyterlab_server' (/usr/local/lib/python3.9/site-packages/jupyterlab_server/__init__.py)
我该如何纠正这个问题?我是否安装了不兼容的软件包版本?
Python 3.9.9 (main, Nov 21 2021, 03:23:42)
[Clang 13.0.0 (clang-1300.0.29.3)]
jupyter-client 7.1.0
jupyter-core 4.9.1
jupyter-kite 2.0.2
jupyter-server 1.13.1
jupyter-server-mathjax 0.2.3
jupyterlab 3.2.5
jupyterlab-git 0.34.0
jupyterlab-kite 2.0.2
jupyterlab-pygments 0.1.2
jupyterlab-server 2.10.0
jupyterlab-server
版本 2.10.0
有一个意外的重大更改,已在 2.10.1
中修复。要解决此问题,请升级到 2.10.1
(或更新版本):
pip install jupyterlab-server>=2.10.1
使用 conda-forge
的 conda 安装应该不会受到影响,因为 2.10.0
从未在那里发布过。