安装django的时候报错:

Collecting django==2.0
Using cached Django-2.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-p31EaG/django/setup.py", line 32, in
version = import('django').get_version()
File "django/init.py", line 1, in
from django.utils.version import get_version
File "django/utils/version.py", line 61, in br/>@functools.lru_cache()
AttributeError: 'module' object has no attribute 'lru_cache'

解决方法:

 pip install django==1.9

官网最新的2.0版本只支持 python 3