问题
Im trying to install python pip in my alpine using Docker compose file but get the following error.
ERROR: unsatisfiable constraints:
py-pip (missing):
required by: world[py-pip]
ERROR: Service 'web' failed to build: The command '/bin/sh -c apk add py-pip' returned a non-zero code: 1
回答1:
Do update first:
apk add --update py-pip
Or:
apk update
apk add py-pip
回答2:
For python3 on alpine edge:
apk add py3-setuptools
回答3:
For me --no-cache option worked.
apk add --no-cache py-pip
来源:https://stackoverflow.com/questions/44633903/alpine-package-py-pip-missing