我試圖用pip
安裝django 1.3.3版本。我有1.5.1版,所以我卸載它,跑這條命令安裝老版本的Django
sudo pip install django==1.3.3
當我運行它,我得到這個響應
$ sudo pip install django==1.3.3
Downloading/unpacking django==1.3.3
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.3.3, but installing version 1.5.1
Installing collected packages: django
Running setup.py install for django
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
changing mode of /usr/local/bin/django-admin.py to 755
Successfully installed django
Cleaning up...
它有點不安,它告訴我,它知道我想要1.3.3 ....但是無論如何它會爲我安裝1.5。我怎麼能告訴它我真的想要1.3.3?
你可能已經安裝了1.5之前的版本。我會推薦使用virtualenv。如果沒有,刪除Django的所有可用的安裝和重新安裝 – karthikr
我已經安裝了1.5,所以我跑'PIP卸載django' – Hoopdady
嘗試手動刪除它,可能會卸載失敗 – karthikr