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

793
Views
Instale una versión específica de python en Dockerfile en ubuntu

Tengo esto en un Dockerfile:

 RUN apt install -y python3-pip

¿Cómo instalo una versión específica de python? Algo como esto:

 RUN apt install -y python3-pip@python===3.6.7

Busco:

Pitón 3.6.7

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Si desea instalar la última versión, simplemente use RUN apt-get install python3 pero si desea instalar una versión específica de python, debe hacerlo manualmente, por ejemplo, vamos a instalar python3.5.1:

 sudo apt-get install libssl-dev openssl wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz tar xzvf Python-3.5.1.tgz cd Python-3.5.1 ./configure make sudo make install

Una vez completada la instalación, configure Python instalado como predeterminado.

over 4 years ago · Santiago Trujillo Report

0

Si solo desea instalar una versión específica de Python en un Ubuntu simple, ¿por qué no usa directamente la imagen oficial de Python que corresponde a sus necesidades?

Puede encontrar todas las imágenes compatibles aquí: https://hub.docker.com/_/python

over 4 years ago · Santiago Trujillo Report

0

RUN /usr/bin/python3 -m pip install --upgrade pip==3.6.7 RUN /usr/bin/python3 -m pip install -r requirements.txt

Esto funcionó para mí. Tenga en cuenta que si actualiza pip de esta manera, solo funciona con su python3 en /usr/bin/python3. Por lo tanto, debe instalar su requirements.txt como se muestra arriba.

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!