No module named torch.distributed
ImportError: No module named torch.distributed

File "train.py", line 4, in &lt;module&gt;
    import torch.distributed as dist
ImportError: No module named torch.distributed


I installed CUDA AND cuDNN then created env and installed pip3 install torch torchvision but getting error.

This works for me:


Create a conda virtual environment:

conda create -n env_pytorch python=3.6

Active this environment create above:

source activate env_pytorch

Install PyTorch with pip or pip3:

pip install torchvision --user


