[英]Errors when installing Django 1.5 with Python 3
Django 1.5 should have experimental support for Python 3. After creating new virtualenv with Python and running pip install django
I get a ton of syntax errors. Django 1.5应该具有对Python 3的实验性支持。用Python创建新的virtualenv并运行
pip install django
我遇到了很多语法错误。 The most interesting thing is that after that it says that Django was successfully installed. 最有趣的是,此后它说Django已成功安装。 Anyway, when I try to start project with
django-admin.py
, it gives me syntax error and dies. 无论如何,当我尝试使用
django-admin.py
启动项目时,它给了我语法错误并消失了。
I'm using Arch Linux and this happens after activating virtualenv too. 我正在使用Arch Linux,并且在激活virtualenv之后也会发生这种情况。
Edit : Here is the log . 编辑 :这是日志 。 It seems that it download Django 1.4 instead of 1.5.
似乎它下载的是Django 1.4而不是1.5。
Edit #2 : Tried to explicitly set version to be 1.5 ( Django==1.5
), but it says it can't find it. 编辑#2 :试图将版本明确设置为1.5(
Django==1.5
),但它说找不到它。
Edit #3 : Of course I could simply grab the newest version from Git repo, but why it isn't in Pip repo if it's Django stable? 编辑#3 :当然,我可以从Git存储库中获取最新版本,但是如果它是Django稳定的,为什么不在Pip存储库中呢?
Your pip might be using an out-of-date mirror. 您的点子可能正在使用过期的镜像。 You can stop pip from using mirrors by creating
~/.pip/pip.conf
: 您可以通过创建
~/.pip/pip.conf
来阻止pip使用镜像:
[global]
use-mirrors=false
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.