Preface:
Anaconda arranged at a plurality of environment, Jupiter Notebook only installed in base
the environment to be able to use in different environments in Jupiter Notebook, as follows.
The system configuration in windows10
step
-
Open
Anaconda Prompt
; -
View existing environment
conda info -e
, I now environment as follows:# conda environments: # base * C:\Software\Anaconda3 tensorflow-cpu C:\Software\Anaconda3\envs\tensorflow-cpu tensorflow-gpu C:\Software\Anaconda3\envs\tensorflow-gpu
-
Go to the appropriate environment
conda activate tensorflow-cpu
-
Installed in the active environment
ipykernel
The number of times, if I use
conda install ipykernel
have failed to install;Thus using pip installation:
pip3 install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple/
-
Select the environment written in Jupiter Notebook:
-m ipykernel Python install --user --name to add environment-name --display " display name "
-
Open the Jupiter Notebook, this time will be able to choose the kernel.
reference
https://blog.csdn.net/tong_he/article/details/78813494
https://blog.csdn.net/u011606714/article/details/77741324