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

167
Views
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 answers
Answer question

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 Report

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 Report

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 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!