Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

790
Vistas
Install specific version of python in Dockerfile on ubuntu

I have this in a Dockerfile:

RUN apt install -y python3-pip

how do I install a specific version of python though? Something like this:

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

I am looking for:

Python 3.6.7

over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

If you want to install latest version just use RUN apt-get install python3 but if you want to install specific version of python you should do it manually for example were going to install 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

After installation completed set installed python as default one.

over 4 years ago · Santiago Trujillo Denunciar

0

If you just want to install a specific version of Python over a simple Ubuntu, then why don't you directly use the official Python image corresponding to your needs ?

You can find all the supported images here : https://hub.docker.com/_/python

over 4 years ago · Santiago Trujillo Denunciar

0

RUN /usr/bin/python3 -m pip install --upgrade pip==3.6.7

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

This worked for me. Please note if you upgrade pip this way if only works with your python3 in /usr/bin/python3. So, you should install your requirements.txt as shown above.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda