DEV Community

Discussion on: How to Solve: "ERROR: unsatisfiable constraints (python)"

mrosata profile image
Michael Rosata

replacing python-dev with python2-dev should still work. You can try the install by running apk add python2-dev inside an alpine:edge container

docker run --rm -ti alpine:edge sh           
/ # apk add python2-dev
(1/11) Installing pkgconf (1.7.3-r0)
(2/11) Installing libbz2 (1.0.8-r1)
(3/11) Installing expat (2.2.9-r1)
(4/11) Installing libffi (3.3-r2)
(5/11) Installing gdbm (1.13-r1)
(6/11) Installing ncurses-terminfo-base (6.2_p20200613-r0)
(7/11) Installing ncurses-libs (6.2_p20200613-r0)
(8/11) Installing readline (8.0.4-r0)
(9/11) Installing sqlite-libs (3.32.2-r0)
(10/11) Installing python2 (2.7.18-r0)
(11/11) Installing python2-dev (2.7.18-r0)
Executing busybox-1.31.1-r14.trigger
OK: 58 MiB in 25 packages