欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Jupyter notebook选择conda环境

程序员文章站 2022-06-01 09:53:11
...

安装完anaconda以后,默认打开的终端是base环境。
想要选择环境,首先进入该环境下的终端。

1、**pythonProject1环境。

source activate pythonProject1

Jupyter notebook选择conda环境
2、安装ipython核

conda install ipykernel

Jupyter notebook选择conda环境
3、在pythonProject1环境安装jupyter notebook,并配置核。

pip install jupyter notebook
python -m ipykernel install --user --name pythonProject1

4、启动jupyter notebook
Jupyter notebook选择conda环境
5、打开notebook文件,输入如下语句,会看到此时notebook的环境就是conda的pythonProject1环境了。
Jupyter notebook选择conda环境

相关标签: 笔记