DEV Community


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

fredc1 profile image

Tested today.
Raspberry pi 3B+ with Raspbian Buster Lite

I had to switch to python3/pip3 to install docker compose.
The message just before the error was:
setuptools requires Python '>=3.5' but the running Python is 2.7.16

1 = make python3 the default python => search google
2 = sudo apt-get install -y python3-pip "3" !!!
3 = sudo pip3 install docker-compose "3" !!!

zuidwijk profile image
Marcel Zuidwijk 

Yep, got this error too and that indeed was the solution. The strange part is that it did worked, till about one or two weeks ago. Now I use this:

$ curl -sSL | sh
$ sudo usermod -aG docker pi
$ sudo apt-get install libffi-dev libssl-dev
$ sudo apt-get install -y python3 python3-pip
$ sudo apt-get remove python-configparser (apparently this isn't installed by using my commands on a clean install)
$ sudo pip3 install docker-compose

rohansawant profile image
Rohan Sawant Author

Updated the post to reflect this. Thanks!