如何安装Django 1.5版?

时间:2022-05-26 07:21:48

If I do pip install django I get version 1.4. If I do pip install Django==1.5 I get the message Could not find a version that satisfies the requirement Django==1.5 (from versions: ). If I install the latest version from github I get version 1.6 alpha.

如果我做pip install django,我会得到版本1.4。如果我做pip安装Django == 1.5我收到消息无法找到满足要求的版本Django == 1.5(来自版本:)。如果我从github安装最新版本,我会得到版本1.6 alpha。

2 个解决方案

#1


7  

Django 1.5 is still in alpha. You can download a tarball from the download page or you can git clone the github repository and switch to what I think is the 1.5 branch with git checkout stable/1.5.x. I'm not sure why 1.5.x is considered a "stable" branch when it's in alpha, but that's the only branch that obviously qualifies.

Django 1.5仍处于alpha状态。您可以从下载页面下载tarball,或者您可以git克隆github存储库并切换到我认为的1.5分支与git checkout stable / 1.5.x。我不确定为什么1.5.x在alpha中被认为是一个“稳定”的分支,但这是唯一明显符合条件的分支。

Either way, I recommend you do the actual installing with pip install -e (directory name) if you can.

无论哪种方式,我建议您使用pip install -e(目录名称)进行实际安装(如果可以)。

#2


5  

Directly from github repository:

直接来自github存储库:

pip install git+git://github.com/django/django.git@1.5b2

#1


7  

Django 1.5 is still in alpha. You can download a tarball from the download page or you can git clone the github repository and switch to what I think is the 1.5 branch with git checkout stable/1.5.x. I'm not sure why 1.5.x is considered a "stable" branch when it's in alpha, but that's the only branch that obviously qualifies.

Django 1.5仍处于alpha状态。您可以从下载页面下载tarball,或者您可以git克隆github存储库并切换到我认为的1.5分支与git checkout stable / 1.5.x。我不确定为什么1.5.x在alpha中被认为是一个“稳定”的分支,但这是唯一明显符合条件的分支。

Either way, I recommend you do the actual installing with pip install -e (directory name) if you can.

无论哪种方式,我建议您使用pip install -e(目录名称)进行实际安装(如果可以)。

#2


5  

Directly from github repository:

直接来自github存储库:

pip install git+git://github.com/django/django.git@1.5b2