如何在 virtualenv 上安装旧版本的 Django? - How do I install an old version of Django on virtualenv?

问题:

This may sound like a stupid question, since the very purpose of virtualenv is to this exactly: Installing some specific version of a package (in this case Django) inside the virtual environment.这听起来像是一个愚蠢的问题,因为virtualenv的真正目的就是:在虚拟环境中安装某个特定版本的包(在本例中为 Django)。 But it's exactly what I want to do, and I can't figure it out.但这正是我想要做的,我想不通。

I'm on Windows XP, and I created the virtual environment successfully, and I'm able to run it, but how am I supposed to install the Django version I want into it?我在 Windows XP 上,并且成功创建了虚拟环境,并且能够运行它,但是我应该如何将我想要的 Django 版本安装到其中? I mean, I know to use the newly-created easy_install script, but how do I make it install Django 1.0.7?我的意思是,我知道要使用新创建的easy_install脚本,但是如何让它安装 Django 1.0.7? If I do easy_install django , it will install the latest version.如果我执行easy_install django ,它将安装最新版本。 I tried putting the version number 1.0.7 into this command in various ways, but nothing worked.我尝试以各种方式将版本号1.0.7放入此命令中,但没有任何效果。

How do I do this?我该怎么做呢?


解决方案:

参考: https://stackoom.com/en/question/DVk0
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章