【发布时间】:2017-12-13 23:16:04
【问题描述】:
我遇到了错误。我需要帮助来解决这个问题。
使用缓存的 django-allauth-0.34.0.tar.gz 收集 Django>=1.8(来自 django-allauth)
使用缓存的 Django-2.0.tar.gz 命令 python setup.py egg_info 的完整输出:
Traceback (most recent call last):
File
> "<string>"
, line 1, in <module>
File
> "/private/var/folders/br/56_l2gp52_d7zcv_tqyf_fkw0000gn/T/pip-`build-IeTRWv/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 61, in <module>
@functools.lru_cache(
)
`enter code here`AttributeError: 'module' object has no attribute 'lru_cache'
**----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/br/56_l2gp52_d7zcv_tqyf_fkw0000gn/T/pip-build-IeTRWv/Django/**
【问题讨论】:
-
Django 1.7.2 在此错误发生之前已安装。 pip install django-allauth 是用于 django-allauth 安装的命令。
标签: django