Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

alpine package py-pip missing

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 
like image 883
user1050619 Avatar asked Jun 19 '17 14:06

user1050619


People also ask

Why is pip not installed with Python?

PIP installation is not added to the system variable – In order to be able to run Python commands from a CMD window, you will need to add the path of your PiP installation to your PATH in the system variable. If you installed Python using the installation executable, it should be added automatically.

Does alpine have Python?

For comparison purposes, the download size of python:3.10-slim-bullseye is 45MB, and python:3.10-alpine is 18MB. Their uncompressed on-disk sizes are 125MB and 48MB respectively.


1 Answers

Do update first:

apk add --update py-pip 

Or:

apk update apk add py-pip 
like image 122
Robert Avatar answered Sep 18 '22 14:09

Robert