我安装了在此处下载的最新的 Anaconda Python 发行版:https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh。
我创建了一个名为
af
的新环境,它是 base
环境的克隆:conda create --name af --clone base
我激活了这个新环境:
conda activate af
base
和af
中的JupyterLab版本是3.5.3,我想更新到4。
(af) richard@ms7c90:~$ jupyter --version
Selected Jupyter core packages...
IPython : 8.10.0
ipykernel : 6.19.2
ipywidgets : 7.6.5
jupyter_client : 7.3.4
jupyter_core : 5.2.0
jupyter_server : 1.23.4
jupyterlab : 3.5.3
nbclient : 0.5.13
nbconvert : 6.5.4
nbformat : 5.7.0
notebook : 6.5.2
qtconsole : 5.4.0
traitlets : 5.7.1
JupyterLab 4 公告说我应该运行:
conda install -c conda-forge jupyterlab
。
但这只能让我到达 3.6.4。
如何将 JupyterLab 更新到 4?
我可以在卸载以前的版本后进行更新
pip install -U jupyterlab
随后
pip install jupyterlab