ModuleNotFoundError: No module named 'paddle.distributed'

3.7k Views Asked by At

I am trying to run the following code to train paddleOCR.

import paddle
import paddle.distributed as dist

But I'm getting this error: ModuleNotFoundError: No module named 'paddle.distributed'

Even after I have installed paddle-client.

2

There are 2 best solutions below

0
On

You can try the paddlepaddle with 2.3.1 version,and quick install can refer to: https://www.paddlepaddle.org.cn/en

0
On
docker pull paddlepaddle/paddle:2.3.0-gpu-cuda11.2-cudnn8 

I use this images which can work well.