在jupyter notebook中使用安装好的pytorch

已经新建一个安装好pytorch的虚拟环境,在jupyter notebook中不能使用
查询到的解决方法:
在jupyter notebook中使用安装好的pytorch
期间会有询问,输入y
在jupyter notebook中使用安装好的pytorch
下载安装成功显示如下:
在jupyter notebook中使用安装好的pytorch
运行jupyter notebook
在jupyter notebook中使用安装好的pytorch
在jupyter notebook中使用安装好的pytorch
选择Python [conda env:torch]
注:我的pytorch安装在名为torch的虚拟环境中
输入测试代码运行,不报错即为安装成功。
在jupyter notebook中使用安装好的pytorch
附:anaconda中安装pytorch教程:https://blog.csdn.net/MY_Azure/article/details/109749348