如何在两个不同的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、点击进入。开始使用。

相关推荐
夜流冰1 天前
VSCode - 显示EOL字符的插件
ide·vscode·编辑器
啊湘1 天前
vscode 使用 github (适用CURSOR等使用)
ide·vscode·github·cursor·mcp
从此不归路1 天前
FPGA 结构与 CAD 设计(第3章)下
ide·fpga开发
云堆客栈1 天前
基于vscode的markdown编辑器部署方案
ide·vscode·编辑器
smileNicky1 天前
Lombok @Data 在 IDEA 中运行报错解决方案
java·ide·intellij-idea
好大哥呀1 天前
C++ IDE
开发语言·c++·ide
dust_and_stars1 天前
ubuntu24 安装vscode
ide·vscode·编辑器
向上的车轮1 天前
如何选择Python IDE?
开发语言·ide·python
Destiny_where1 天前
Claude VSCode插件版接入强大的GLM(无需登录注册claude code)
ide·人工智能·vscode·编辑器·claude code
猫头虎1 天前
Claude Code 2026 年1月9日迎来大更新:Agent 能力增强(2.1.0 详解 + 升级指南)
ide·人工智能·macos·langchain·编辑器·aigc·ai编程