The environment solution in conda cannot be found in Jupyter notebook

Problem : Created an environment named w under anaconda, installed pytorch in this environment, and then wanted to use jupyter notebook, but found that there was no such environment after opening jupyter

  1. First download ipykernel, see install jupyter notebook in conda in the previous post

conda install ipykernel
  1. Then use the statement to set jupyter ( generally open without environment is the lack of this step )

python -m ipykernel install --name w

Where w is the name of the environment you created

  1. Then use the statement to open the jupyter website

jupyter notebook

At this point, we can jump to the corresponding interface and check whether there is the conda environment we added

Guess you like

Origin blog.csdn.net/qq_45138078/article/details/129275975