Torch distributed, ProcessGroup import error

I’m hitting some error trying to run some code as I can’t import ‘ProcessGroup’

Python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

from torch.distributed import ProcessGroup
Traceback (most recent call last):
File “”, line 1, in
ImportError: cannot import name ‘ProcessGroup’ from ‘torch.distributed’ (/home/fbarilla/.local/lib/python3.8/site-packages/torch/distributed/
import torch



Looks like you incorrectly posted to the AMA section. Unfortunately there are no technical resources watching this category. Can you please let me know what forum best fits your issue? I will move this topic for you.

Thanks Tom, the answer has been provided in:

1 Like

Great, I will close this topic then.