Docker-compose Install: No module named docker.errors Docker-compose Install: No module named docker.errors docker docker

Docker-compose Install: No module named docker.errors


I'm in later versions of those packages. But I had the exact same error and installing "requests" package in a recent version did fix the problem.

docker==3.5.0docker-compose==1.22.0docker-dev==1.0b2docker-py==1.10.6docker-pycreds==0.3.0dockerpty==0.4.1requests==2.18.4

However, I then got another error: https://github.com/docker/compose/issues/4401

Applying the change proposed in comments did the trick:

pip uninstall dockerpip uninstall docker-pypip uninstall docker-composepip install docker-compose==1.9.0

Then I got into a third error: https://github.com/docker/docker-py/issues/1916

That I fixed by uninstalling the docker-py pip package which is incompatible with the docker one.

Now docker-compose works.

Hope this helps.