Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

1.6K
Views
¿Cómo instalo python en alpine linux?

¿Cómo instalo python3 y python3-pip en una imagen basada en alpine (sin usar una imagen de python)?

 $ apk add --update python3.8 python3-pip ERROR: unsatisfiable constraints: python3-pip (missing): required by: world[python3-pip] python3.8 (missing): required by: world[python3.8]
over 4 years ago · Santiago Trujillo
6 answers
Answer question

0

Parece que está intentando instalar una versión secundaria específica de Python3 (3.8), puede hacerlo en Alpine usando semver como este que instalará una versión de python3>=3.8.0 <3.9.0-0 :

 apk add python3=~3.8
over 4 years ago · Santiago Trujillo Report

0

Puede usar la imagen oficial de python que también ofrece etiquetas alpinas. Probablemente obtendrá la instalación de python más avanzada:

p.ej:

FROM python:3-alpine

over 4 years ago · Santiago Trujillo Report

0

en lugar de python3-pip, instale py3-pip

 apk add --update python3 py3-pip
over 4 years ago · Santiago Trujillo Report

0

Esto es lo que uso en un Dockerfile para una imagen alpina:

 # Install python/pip ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python RUN python3 -m ensurepip RUN pip3 install --no-cache --upgrade pip setuptools
over 4 years ago · Santiago Trujillo Report

0

Mire aquí: https://pkgs.alpinelinux.org/packages Entonces, lo que está buscando son los python3 y py3-pip .

Un comando adecuado para usar dentro de un dockerfile/etc sería:

 apk add --no-cache python3 py3-pip

Explicación de la --no-cache

Sin embargo, tenga en cuenta que debe agregar el repositorio de la comunidad ya que py3-pip no está presente en main .

over 4 years ago · Santiago Trujillo Report

0

Puedes probar este comando

apk añadir python3

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!