DEV Community

loading...

Discussion on: Installing Docker and Docker Compose on the Raspberry Pi in 5 Simple Steps

Collapse
eriksneff profile image
Erik Neff

Thx for this post, Rohan! One possible thing to add - when I ran the command: sudo pip install docker-compose on my Raspberry Pi 4 running Ubuntu 19.10, I got the error:

ERROR: Cannot uninstall 'PyYAML'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

After reading this thread - stackoverflow.com/questions/499115... - I was able to install docker-compose by adding the ignore-installed flag like this:

sudo pip install docker-compose --ignore-installed PyYAML

Note that during the install, I did see these 2 errors:
ERROR: launchpadlib 1.10.7 requires testresources, which is not installed.
ERROR: docker-compose 1.25.0 has requirement PyYAML<5,>=3.10, but you'll have pyyaml 5.1.2 which is incompatible.

but that didn't stop docker-compose from installing successfully, and now I have:

ubuntu@ubuntu:~$ docker-compose --version
docker-compose version 1.25.0, build b42d419

and I just manually ran sudo pip install testresources after. Hope this helps!

Collapse
rohansawant profile image
Rohan Sawant Author

Oh, on Ubuntu 19?

I had not thought it would work with that. Cool that you manage to get it working!