python - docker.errors.DockerException: Error while fetching server API version
I want to install this module but there is something wrong when I try the step docker-compose build ...

Are you sure docker is running on your system? You can get that error when compose is not able to connect to docker via docker socket (if any other way for connection is not defined).
If you are running on linux, usually you can run systemctl status docker to check if docker daemon is running and systemctl start docker to start it.
It would help to tell what OS and docker version are you using.
