1. 安装jupyter notebook

conda install -y jupyter

2. 开启jupyter

jupyter notebook

3. 将conda环境添加到jupyter的内核中

conda install ipykernel 

python -m ipykernel install --name conda_env_name

python -m ipykernel install --user --name pytorch171 --display-name pytorch171

4.查看有哪些环境

jupyter kernelspec list

5. 删除指定kernel环境

jupyter kernelspec uninstall pytorch1.8_python3.6

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐