向 jupyter 中添加内核

向 jupyter 中添加内核

1. 新建 conda 环境

首先新建 conda 环境:

conda create -n '环境名' python='版本号'

2. 向环境中添加内核

在普通 python 环境下使用命令:

python -m ipykernel install --name env_name
  • env_name 改为所需要添加的环境名字即可;
  • 该命令的运行是在普通 python 环境下运行,而不是在所要添加内核的环境下运行。

参考文章:https://blog.csdn.net/weixin_43590796/article/details/115689009

猜你喜欢

转载自blog.csdn.net/qq_45668004/article/details/120364030