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

相关推荐
Xiu Yan1 天前
Python 数据分析:Pandas DataFrame 零基础入门教程
python·jupyter·pycharm·numpy·pandas
2501_915909061 天前
移动端开发工具链怎么组合比较好,iOS、Android、跨端三套配置方案
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
伞伞悦读1 天前
【第39期】Python 第三方包安装详解:pip、conda、requirements、版本锁定和镜像源
python·conda·pip
2501_915918412 天前
iOS编程用什么软件好?主流工具Xcode、AppCode、CodeRunner与新兴快蝎对比
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
Xiu Yan2 天前
Python 数据分析:Pandas Series 零基础入门教程
python·jupyter·pycharm·numpy·pandas
滕州市燕猫虎计算机科技工作室个体工商户3 天前
IDEA:Command line is too long
java·ide·intellij-idea
梦想不只是梦与想3 天前
环境管理:Conda 与 venv
python·conda·uv
AI编码进化论4 天前
云IDE介绍:环境模板化、Agent上云,云IDE该怎么选
开发语言·ide·人工智能·团队开发·ai编程
troy1285 天前
Python 基础语法(九):Django/Flask/FastAPI 三大 Web 框架详细对比解析
python·jupyter·django·flask·github·fastapi
我要见SA姐15 天前
DeepSeek Harness 开源贡献手记:从 Issue 到 Merge 的完整旅程
ide·vscode·python·自动化·编辑器