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

相关推荐
wjhx16 小时前
关于xcode中使用图标
ide·macos·xcode
漫随流水19 小时前
创建一个IDEA的Java项目
java·ide·intellij-idea
且去填词20 小时前
VSCode 中使用 Codex:命令、Agent 与 Skills 完整指南
ide·人工智能·vscode·编辑器·codex
学习是种信仰21 小时前
复现conda环境及Python 项目路径(PYTHONPATH)问题——基于Ubuntu
python·ubuntu·conda
PersistJiao1 天前
开发环境对比:VS Code、Cursor、IntelliJ IDEA
java·ide·intellij-idea
渣渣灰95871 天前
VSCode开发环境开发Qt程序
ide·vscode·qt
winfred_hua1 天前
PyCharm中使用jupyter
ide·jupyter·pycharm
仅此,1 天前
vscode 启动项目时,设置 PYTHONPATH 导包路径
ide·vscode·python·编辑器
svdo1250p1 天前
“Fatal error: require(): Failed opening required...” 以及如何彻底避免它再次出现
android·ide·android studio
lulu12165440781 天前
JetBrains IDE 终极AI编程方案:CC GUI插件让Claude Code和Codex丝滑运行
java·ide·人工智能·python·ai编程