暮尘十六
暮尘十六
Published on 2024-10-25 / 24 Visits
0
0

jupyter管理

多个Python虚拟环境之间的jupyterlab内核管理

在有多个Python环境的情况下,要想同时使用jupyter,默认环境为base,只需要base安装jupyterlab即可。

其它环境使用conda安装ipykernel即可:cond

conda install ipykernel

然后将内核添加到jupyterlab中:

python -m ipykernel install --name your_envname

如果出现报错:

[Errno 13] Permission denied: '/usr/local/share/jupyter'

是为权限不足,修改/usr/local/share/文件夹的访问权限即可。

另外删除kernel环境:
jupyter kernelspec remove 环境名称


Comment