Closed monkeycc closed 2 years ago
这个是megengine版本,不是pyotorch版本的,不过python setup.py develop的时候确实有检查torch,我安装的cpu版本的torch和torchvision通过了检查
@monkeycc Having the same error on my side. Did you find any solution?
Did you find any solution?
Plz make sure you install cuda version torch @pot2mayo
@FateScript Thanks for you reply.
After double checking I figured what was my issue.
I installed torch with cuda using conda (I'm using anaconda for managing environments) via the following command:
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
following the official documentation.
However when checking if it's available using the script
import torch
print(torch.cuda.is_available())
It returned False
I actually should have installed via pip
using the command below
pip3 install torch==1.10.1+cu113 torchvision==0.11.2+cu113 torchaudio===0.10.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
And now it works fine 🎉
环境 CUDA Version: 11.2 没问题
按照官方的教程 报错