jupyter import torch时候出现报错

Appease the type checker; ordinarily this binding is inserted by the

有可能是因为没有找到torch路径在path中设置一下路径

也有可能是torch版本问题

pip3 install torch==1.8.2+cu111 torchvision==0.9.2+cu111 torchaudio===0.8.2 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html

升级过后就可以了

升级的时候要关掉占用的编译器,不然会出现安装错误

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐