How to configure conda environment in jupyter notebook

method one:

1. Download the nb_conda library

conda install nb_conda_kernels

2. Restart and run directly jupyter notebook:

Insert picture description here

The possible problem is that the service has not been connected, and the symbol in front of the code has always been the 【*】
solution:
uninstall jupyter notebook and reinstall

conda uninstall jupyter
conda install jupyter

You may have to download nb_conda_kernels again:

conda install nb_conda_kernels

Way two:

anaconda terminal input

python -m ipykernel install --user --name 环境名称 --display-name "环境名称"

Guess you like

Origin blog.csdn.net/sazass/article/details/109848765
Recommended