No module named “Torch”

前端 未结 13 1028
慢半拍i
慢半拍i 2021-01-04 01:41

I installed pytorch via

conda install pytorch-cpu torchvision-cpu -c pytorch

And I also tried

pip3 install https://download.pytorch         


        
13条回答
  •  清歌不尽
    2021-01-04 02:30

    Make sure that NumPy and Skipy libraries are installed before installing the torch library that worked for me at least on windows.

    step 1. Install NumPy: pip install numpy
    step 2. Install Skipy: pip install skipy
    step 3. Go to pytorch.org and select your needs and copy the address
    step 4. Paste the address and download

    Hope that works for you as well ( :

提交回复
热议问题