在django-2出现后,我使用pip为python 2.7安装模块时出错。
我正在尝试为django-1.11.8和django_cron -2.7安装python,但是我得到了错误-
@functools.lru_cache()
AttributeError: 'module' object has no attribute 'lru_cache'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-JKhsAF/Django/那么如何安装python-2.7和django-1.11.8的模块呢?
发布于 2017-12-11 14:26:45
我以前也遇到过这个问题,我发现你可能需要更新pip和设置工具,这是根据优秀的答案我发现它的here。
但对我有效的解决方案是,我下载已加载的Django 1.10.5,然后我可以安装任何我想要的包。
https://stackoverflow.com/questions/47747405
复制相似问题