我試圖安裝Django 1.4.3,但是當我執行點子安裝,PIP一直安裝Django的1.5版本,而不是1.4.3PIP安裝:如何強制特定的軟件包的版本
sudo pip install -I Django==1.4.3
它返回:
Downloading/unpacking Django==1.4.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.4.3, but installing version 1.5 <<<< ====
Installing collected packages: Django
Found existing installation: Django 1.5
Uninstalling Django:
Successfully uninstalled 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...
,但如果我執行畫中畫凍結,它不斷顯示
Django的== 1.5
我在做什麼錯?
謝謝
愚蠢的問題,但你有沒有試過卸載Django的所有版本,然後運行你的命令? – NT3RP
是的,我做了,並沒有工作。我也可以選擇下載軟件包並手動安裝它,但我想知道是否有一個選項在點子,以避免這種行爲,並強制1.4.3版本 – kothvandir
你只試過'pip install Django == 1.4.3 ' – catherine