如何使用 conda 或 pip 更新 jupyterlab
How to update jupyterlab using conda or pip
如何使用 conda 或 pip 更新 jupyterlab?
我知道 conda update jupyter
更新了 jupyter notebook(我有 Anaconda),但我不确定这是否也适用于 jupyterlab。
conda update jupyter
不会自动更新jupyterlab。您必须明确请求更新 jupyterlab:
conda update jupyterlab
您可能需要指定 conda-forge:
conda update -c conda-forge jupyterlab
编辑:
尝试更新到 3.0,conda update jupyterlab
对我不起作用(jupyter lab --version
的结果仍然是 2.x),当我尝试指定 conda-forge 或 jupyterlab=3.0 时,命令也挂起长。在解决了将近一个小时的环境后,我放弃了。以下内容来自 Anaconda shell:
conda uninstall jupyterlab
conda install -c conda-forge jupyterlab=3
如果您更喜欢使用 pip:
pip install --upgrade jupyterlab
或者如果您想要特定版本:
pip install jupyterlab==1.2.4
根据您的权利,您可能还需要在其中添加 --user
:
pip install jupyterlab==1.2.4 --user
尝试在 Anaconda 上更新 Jupyterlab 但失败了,这让我感到很沮丧。
最终我意识到这行代码对我有用:
conda update --all
在使用 conda 反复使用上述方法后,none 对我有用,可以将 nodejs 升级到 > v14.x - 以下是对我有用的解决方案, 感谢下面的 link:
- conda search nodejs #搜索conda下的nodejs版本。
- conda 安装 nodejs=14.7.0 -c conda-forge
如何使用 conda 或 pip 更新 jupyterlab?
我知道 conda update jupyter
更新了 jupyter notebook(我有 Anaconda),但我不确定这是否也适用于 jupyterlab。
conda update jupyter
不会自动更新jupyterlab。您必须明确请求更新 jupyterlab:
conda update jupyterlab
您可能需要指定 conda-forge:
conda update -c conda-forge jupyterlab
编辑:
尝试更新到 3.0,conda update jupyterlab
对我不起作用(jupyter lab --version
的结果仍然是 2.x),当我尝试指定 conda-forge 或 jupyterlab=3.0 时,命令也挂起长。在解决了将近一个小时的环境后,我放弃了。以下内容来自 Anaconda shell:
conda uninstall jupyterlab
conda install -c conda-forge jupyterlab=3
如果您更喜欢使用 pip:
pip install --upgrade jupyterlab
或者如果您想要特定版本:
pip install jupyterlab==1.2.4
根据您的权利,您可能还需要在其中添加 --user
:
pip install jupyterlab==1.2.4 --user
尝试在 Anaconda 上更新 Jupyterlab 但失败了,这让我感到很沮丧。 最终我意识到这行代码对我有用:
conda update --all
在使用 conda 反复使用上述方法后,none 对我有用,可以将 nodejs 升级到 > v14.x - 以下是对我有用的解决方案, 感谢下面的 link:
- conda search nodejs #搜索conda下的nodejs版本。
- conda 安装 nodejs=14.7.0 -c conda-forge