jupyter notebook 添加 conda 环境

问题:在conda原有环境的基础上,添加了新的conda环境,需要在新环境下使用jupyter notebook

解决:

1. 安装ipykernel

conda install ipykernel  

2. 激活conda环境

source activate your_env_name

3. 将环境写入notebook的kernel中

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

4. 打开notebook

jupyter notebook  

你可能感兴趣的:(jupyter notebook 添加 conda 环境)