Jupyter notebook中怎么运行Pytorch


1.打开Anaconda Navigator

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

Jupyter notebook中怎么运行Pytorch_第1张图片提示:这里描述项目中遇到的

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

Jupyter notebook中怎么运行Pytorch_第2张图片

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

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

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

 

你可能感兴趣的:(bug总结,jupyter,ide,python)