I’m using torch in WSL (Windows Subsystem for Linux). I installed torch and torchvision, but still got error when I tried to use torch.distributed:
/usr/bin/python: No module named torch.distributed
Maybe it doesn’ support WSL?
I’m using torch in WSL (Windows Subsystem for Linux). I installed torch and torchvision, but still got error when I tried to use torch.distributed:
/usr/bin/python: No module named torch.distributed
Maybe it doesn’ support WSL?
I tried on WSL2 with cuda.
It supports torch.distributed.
Please type wsl -l -v
to check your wsl status
It works on WSL2 with Windows CPU machine too
WSL1 doesn’t support GPU.
But I think if you install pytorch cpu version, the torch.distributed should be available too.
Did you build PyTorch with USE_DISTRIBUTED=1?