mrshenli:

os.environ[‘MASTER_ADDR’] = ‘localhost’ os.environ[‘MASTER_PORT’] = ‘29500’


@mrshenli, I added as you said, but still the same error.
The error comming from this line:
rpc.init_rpc("worker0", rank=0, world_size=2)