conda created a new environment, but when I opened jupyter, I found that there was no such environment option.
It was found that adding a virtual environment to jupyter requires a connection. The steps are as follows.
- First activate your own virtual environment
. - Check if ipykernel is installed in the environment
- Use the command to add this virtual environment to the jupyter kernel
python -m ipykernel install --name your_kernel_name
- Reopen jupyter
and found a new environment
, and the name here is the same as your_kernel_name set after –name.