Cannot import Pytorch [WinError 126] The specified module could not be found

前端 未结 5 2235
离开以前
离开以前 2021-02-18 15:31

I\'m trying to do a basic install and import of Pytorch/Torchvision on Windows 10. I installed a Anaconda and created a new virtual environment named photo. I opened Anaconda pr

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-18 15:59

    Uninstall your pytorch which you have installed and try this using conda

    conda install PyTorch -c PyTorch
    

    If it wasn't work run this code in cmd

    pip3 install torchvision
    

提交回复
热议问题