Jupyter notebook中怎么运行Pytorch


1.打开Anaconda Navigator

(在开始菜单里搜索即可)

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

2. 找到图中箭头位置,切换成你需要更换的环境名称

 3.找到Jupyter Notebook的位置,点击Install,图中因为已经安装,所以是Launch,当没有下载过时,状态为Install,如下所示:

4 重启Jupyter Notebook,选择合适虚拟环境的jupyter notebook打开。输入import torch,如果还是显示下面结果:

 那么可能你的环境没有安装torch模块

猜你喜欢

转载自blog.csdn.net/weixin_45303602/article/details/128766697