简体   繁体   English

指定django-admin的版本

[英]Specify The Version of django-admin

I have been having a problem that I know about, but cannot seem to find the solution for. 我遇到了一个我知道的问题,但似乎找不到解决方法。 I need to run python 3.2.2 and django 1.6.5 and when I use the django-admin command it works, but causes problems because django-admin --version 1.7b3 and not 1.6.x 我需要运行python 3.2.2django 1.6.5 ,当我使用django-admin命令时,它可以工作,但是会导致问题,因为django-admin --version 1.7b3而不是1.6.x

I am running ubuntu and was wondering if someone knew how to downgrade django-admin to version 1.6.x 我正在运行ubuntu,想知道是否有人知道如何将django-admin降级到1.6.x

I have re-installed everything and not sure what is going wrong in that everything else is installed right 我已经重新安装了所有内容,但不确定其他地方是否安装正确了,这是怎么回事

You are not asking about the version of django-admin, which is simply a script that comes with Django, but about the version of Django itself. 您不是在问django-admin的版本(这只是Django随附的脚本),而是在询问Django本身的版本。

You don't say how you installed Django in the first place. 您首先没有说过如何安装Django。 The best way is to use pip : to install a specific version, you would do: 最好的方法是使用pip :安装特定版本,您可以这样做:

pip install django==1.6.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM