2013-04-11 79 views
-2

它給了我1.5:不能安裝Django 1.4錯誤

imac9:site-packages pdadmin$ sudo pip install django==1.4.1 
Downloading/unpacking django==1.4.1 
    Running setup.py egg_info for package django 

    warning: no previously-included files matching '__pycache__' found under directory '*' 
    warning: no previously-included files matching '*.py[co]' found under directory '*' 
    Requested django==1.4.1, but installing version 1.5.1 
Installing collected packages: django 
    Found existing installation: Django 1.5.1 

我將如何解決這一問題?

+0

可能的重複:http://stackoverflow.com/questions/15957766/how-to-install-django-1-4 – 2013-04-11 20:57:25

回答

2

您可能已有更新的版本。

Found existing installation: Django 1.5.1

我想你應該先卸載該之一。

2

我會建議使用virtualenv。這樣,你的1.4和1.5安裝可以在不同的環境中和平共處(無論如何它的分發/部署都更好)。目前我在兩個獨立的項目中運行1.4.1和1.5。

0

我能夠解決這個問題的唯一方法是下載1.4 tar並手動安裝它。