Ask questionsDocker-compose Install: No module named docker.errors

Hello every one , I'm facing this issue when i'm installing docker-compose

OS: ubuntu 14.04

docker --version Docker version 17.05.0-ce, build 89658be pip freeze | grep docker docker==2.5.1 docker-pycreds==0.2.1 dockerpty==0.4.1

pip install docker-compose Installing collected packages: docker-compose Successfully installed docker-compose-1.17.0

docker-compose --version

Traceback (most recent call last): File "/usr/local/bin/docker-compose", line 7, in <module> from compose.cli.main import main File "/usr/local/lib/python2.7/dist-packages/compose/cli/", line 17, in <module> from . import errors File "/usr/local/lib/python2.7/dist-packages/compose/cli/", line 11, in <module> from docker.errors import APIError ImportError: No module named docker.errors

Any solution for this error , thank you for your help.


Answer questions hieudang9

@bainim well the link is dead and nor google nor the internet archive seem to have a copy.. got any tips about how to solve the issue? :)

Just google and found solution, work for me

pip3 uninstall docker-py
pip3 uninstall docker-compose
pip3 install --upgrade --force-reinstall --no-cache-dir docker-compose


Github User Rank List