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

206
Views
ImportError: no se puede importar el nombre 'sysconfig' de 'distutils' (/usr/lib/python3.8/distutils/__init__.py)

Instalé pip3 usando sudo apt-get install python3-pip después de eso, cuando ejecuto el siguiente comando para instalar django sudo pip3 install django me sale este error:

Rastreo (última llamada más reciente): Archivo "/usr/bin/pip3", línea 9, desde el archivo principal de importación de pip "/usr/lib/python3/dist-packages/pip/ init .py", línea 14, en from pip.utils import get_installed_distributions, get_prog File "/usr/lib/python3/dist-packages/pip/utils/ init .py", línea 23, in from pip.locations import ( File "/usr/lib/python3/dist -packages/pip/locations.py", línea 9, desde distutils import sysconfig ImportError: no se puede importar el nombre 'sysconfig' desde 'distutils' (/usr/lib/python3.8/distutils/ init .py)

¿Cómo puedo solucionar esto?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Esto ayudó, pero luego recibí otro error: ImportError: No hay un módulo llamado 'pip._internal'

Lo siguiente lo arregló:

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

python3 get-pip.py --force-reinstalar

over 4 years ago · Santiago Trujillo Report

0

Recientemente intenté instalar manualmente la versión python3.9 en mi Ubuntu desde la versión 3.6 usando apt install python3.9 . Entonces pip3 se rompió. El problema se debe a que las distutils no se crearon para la versión 3.9.

Entonces, en mi caso, ejecuté apt install python3.9-distutils para resolver mi problema.

En su caso, asegúrese de modificar la versión 3.x en el comando distutils.

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!