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

156
Views
Hay errores cuando instalo django por git?

Instalo django a través de:

git clonar git://github.com/django/django.git

pip install -e django/

Yo uso Ubuntu 16.04.

Pero se producen algunos errores:

 Obtaining file:///home/leo/django Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/leo/django/setup.py", line 32, in <module> version = __import__('django').get_version() File "django/__init__.py", line 1, in <module> from django.utils.version import get_version File "django/utils/version.py", line 60, in <module> @functools.lru_cache() AttributeError: 'module' object has no attribute 'lru_cache' ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /home/leo/django/

Cómo arreglar esto ? Gracias.

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

La última versión de Django no es compatible con Python 2.7.

Si realmente desea usar python 2.7 y también usar Django, debe instalar una versión anterior de Django.

La última soportada es: 1.11

Por lo tanto, simplemente ejecute:

 pip install django==1.11
over 4 years ago · Santiago Trujillo Report

0

Esto se debe a que la versión de django que tiene necesita el intérprete python3 . así que intenta ejecutar el mismo comando usando pip3

Para instalar pip3 sudo apt-get -y install python3-pip

entonces corre

pip3 install -e django/

over 4 years ago · Santiago Trujillo Report

0

Puede instalar una versión Python 2 de Django usando git; solo necesita verificar primero la etiqueta de lanzamiento correcta. Prueba algo como

 git clone git://github.com/django/django.git cd django git checkout 1.11.0 cd .. pip install -e django/

Dicho esto, es mucho mejor usar pip directamente, como sugieren otras soluciones.

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!