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

907
Views
Instale PIP3 y PYTHON3.7 en Docker Ubuntu 18.04

Tengo que instalar Python3.7 y pip3 para Python3.7 en mi Docker Ubuntu18.04. Puedo instalar 3.7 , pero no puedo deshacerme de pip3 para Python3.6 :

 FROM ubuntu:18.04 # ... RUN apt-get update && apt-get install -y \ software-properties-common RUN add-apt-repository ppa:deadsnakes/ppa RUN apt-get update && apt-get install -y \ python3.7 \ python3-pip RUN python3.7 -m pip install pip RUN apt-get update && apt-get install -y \ python3-distutils \ python3-setuptools

y yo tengo

 root@ef0c924ba7fa:/tornado_api# python3.7 --version Python 3.7.3 root@ef0c924ba7fa:/tornado_api# pip3 --version pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

mientras que debería ser pip3 en /usr/lib/python3.7/

Actualmente, obtengo

 root@ef0c924ba7fa:/tornado_api# which pip3 /usr/bin/pip3 root@ef0c924ba7fa:/tornado_api# readlink $(which pip3) root@ef0c924ba7fa:/tornado_api#
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Parece que esto se ha vuelto obsoleto, sin embargo, me preguntaba si simplemente haciendo python3.7 -m pip install --upgrade pip

 FROM ubuntu:18.04 # ... RUN apt-get update && apt-get install -y \ software-properties-common RUN add-apt-repository ppa:deadsnakes/ppa RUN apt-get update && apt-get install -y \ python3.7 \ python3-pip RUN python3.7 -m pip install pip RUN apt-get update && apt-get install -y \ python3-distutils \ python3-setuptools RUN python3.7 -m pip install pip --upgrade pip
over 4 years ago · Santiago Trujillo Report

0

solo reinstala

 curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py python3.7 get-pip.py --force-reinstall
over 4 years ago · Santiago Trujillo Report

0

Pruebe ' sudo apt purge pip3 ' o ' sudo apt-get purge pip3 ' Si eso no funciona, intente desinstalar pip3 con pip3. (No estoy tan seguro de cómo)

Lo siguiente que debo intentar es actualizar pip3 con ' pip3 install pip3 ' (creo)

Si esos no funcionan, entonces no lo sé.

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!