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

前端 未结 5 2225
离开以前
离开以前 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 16:05

    I have installed Microsoft Build Tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/ I have checked all boxes regarding C++ section.

    Before this I could only import torch from Jupyter notebook but not from ipython or python shell. I don't why that's so but it works now.

提交回复
热议问题