如何在两个不同的conda环境中实现jupyter notebook共同使用,避免重复下载

前提:有2个conda环境,yes和py38_pytorch

其中,yes已经安装了jupyter notebook;py38_pytorch没有jupyter notebook

现在,实现在py38_pytorch用jupyter notebook

步骤:

1、激活py38_pytorch

conda activate py38_pytorch

2、conda install ipykernel

这个包允许环境作为Jupyter的内核使用

3、将环境添加到Jupyter的内核列表

python -m ipykernel install --user --name myenv --display-name "py38_pytorch"

4、激活yes(有jupyter notenook)的环境

conda activate yes

5、输入 jupyter notebook,打开

6、HOME页面右侧下拉,看到已经添加(红框部分)

7、点击进入。开始使用。

相关推荐
葵花日记16 小时前
VS2022 美化指南:用 ClaudiaIDE 设置自定义编辑器背景
ide·visualstudio·编辑器
解道Jdon17 小时前
FigCraft把Figma用Rust从零重写了一遍
ide·windows·git·svn·eclipse·github·visual studio
运维@小兵1 天前
安装Pycharm并破解
ide·python·pycharm
你说我胖?1 天前
Visual Studio编辑生成exe
ide·visual studio
cgblpx2 天前
vscode的安装
ide·vscode·编辑器
文祐2 天前
Windows系统下载pycharm-community-2025.2
ide
饭来_3 天前
Ubuntu 中出现 CondaToSNonInteractiveError 的解决方法
ubuntu·conda·debug
golang学习记3 天前
VSCode多光标迎来重大更新
ide·vscode·编辑器
53488736abcdefg3 天前
Anaconda+Jupyter+NumPy
jupyter·numpy·anaconda
夜雪一千3 天前
如何取消PyCharm自动识别test开头文件并进入测试模式
ide·python·pycharm