Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

160
Visualizações
There are errors when I install django by git?

I install django through :

git clone git://github.com/django/django.git

pip install -e django/

I use Ubuntu 16.04.

But some errors occur :

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/

How to fix this ? Thank you.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

The last Django version does not support python 2.7.

If you really want to use python 2.7 and also use Django you should install a previous Django version.

The latest supported is: 1.11

Therefore, just run:

pip install django==1.11
over 4 years ago · Santiago Trujillo Relatório

0

This because django version you have needs python3 interpreter. so try to run the same command using pip3

To install pip3 sudo apt-get -y install python3-pip

then run

pip3 install -e django/

over 4 years ago · Santiago Trujillo Relatório

0

You can install a Python 2 version of Django using git - you just need to checkout the correct release tag first. Try something like

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

That said, you are much better off using pip directly, as other solutions suggest.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda