pytorch ImportError:DLL加载失败:找不到指定的模块

2024-04-26 17:17:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我安装了火炬

pip3 install torch===1.3.0 torchvision===0.4.1 -f https://download.pytorch.org/whl/torch_stable.html

根据https://pytorch.org这是一个成功。我能够import torch并遵循这里的教程:https://pytorch.org/tutorials/

我想进入下一个层次,因此使用pip install torchvision和g++编译器成功地安装了torchvision

但是现在,当我尝试import torch时,我得到了以下错误:

ImportError: DLL load failed: The specified module could not be found.

我使用的是windows10和amdryzen7,python3.7.3。你知道吗

我尝试降级到python3.6.5和3.5并重新安装,但未能安装torch和torchvision。你知道吗

有什么建议吗?你知道吗


Tags: installhttpsorgimportdownloadhtmlpip3教程