Python tips-Anaconda uses the existing python environment to create a Kernel for Jupyter notebook

1. Switch to the corresponding python environment

conda activate 环境名

Insert picture description here

2. Install ipykernel

pip install ipykernel

3. Add the virtual environment to Jupyter notebook

python -m ipykernel install --user --name 环境名称 --display-name Jupyter中要显示的名字

i.e.
Insert picture description here

Guess you like

Origin blog.csdn.net/fuhao7i/article/details/109629741