How to run Pytorch in Jupyter notebook


1. Open Anaconda Navigator

(Just search in the start menu)

提示:这里描述项目中遇到的

2. Find the arrow position in the figure and switch to the environment name you need to replace

 3. Find the location of Jupyter Notebook, click Install, because it has been installed in the picture, it is Launch, when it has not been downloaded, the status is Install, as shown below:

4 Restart Jupyter Notebook, select the appropriate virtual environment jupyter notebook to open. Enter import torch, if the following results are still displayed:

 Then maybe your environment does not have the torch module installed

 

Guess you like

Origin blog.csdn.net/weixin_45303602/article/details/128766697