关于在Anaconda上安装Pytorch的问题
请教一下各位,为什么我安装完Pytorch以后,如果是直接用快捷键打开jupyter notebook并执行import torch的时候会显示如下错误:
而使用如下方法打开jupyter notebook并执行import torch的时候则是正常运行
【相关推荐】
还是在prompt中输入conda activate pytorch,执行,再输入conda install jupyter notebook,执行。安装好jupyter notebook之后,可以在anoconda中看到有了open with jupyter notebook的选项。
可以在anaconda中打开jupyter验证是否成功:创建一个python3文件,输入 import torch,不报错,即表示成功。
全篇完!——BY GD