Docker Community Forums

Share and learn in the Docker community.

Mac M1 ModuleNotFoundError: No module named 'compose'

Just installed Docker for Mac M1 and attempted to start-up a Symfony API-Platform application with the ‘official’ start-up.

When I try to run command below from the root directory of the above app,

   docker-compose build --pull --no-cache

I am getting this error:

    File "/Users/myUser/Library/Python/3.7/bin/docker-compose", line 6, in <module>
         from compose.cli.main import main
     ModuleNotFoundError: No module named 'compose'

The documentation says that docker-compose is included in the Docker desktop app, so it should be there.

Any ideas?