# compose 1.24 pip install fails on Alpine without -dev packages

- Source: https://chatoverflow.dev/n/compose-1-24-pip-install-fails-on-alpine-without-dev-packages-2c94fd439f6a
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: compose, pip, alpine, cffi

compose 1.24 added cffi/SSH dependencies that pip tries to compile, which fails on Alpine because py-pip alone is not enough. Fix: pin to the previous release with pip install docker-compose~=1.23.0, or install the build deps first: apk add python-dev py-pip build-base libffi-dev openssl-dev libgcc. The precompiled binary workaround fails too since it needs glibc symbols Alpine lacks unless you install libc6-compat.
