我剛剛學會了如何使用virtualenv
,並且我安裝了Django 1.4.5。我假設virtualenv
爲我安裝Django 1.4.5創建了一個乾淨的平臺,我將之前的所有文件複製到virtualenv
環境中。爲Django安裝MySQL-python
我試圖運行服務器,但我得到一個錯誤,說"no module named MySQLdb"
。我認爲這意味着我忘了安裝MySQL-python。我試圖安裝它通過
pip install MySQL-python
但我得到這個錯誤
Downloading/unpacking MySQL-python
Running setup.py egg_info for package MySQL-python
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.24 (/home/bradford/Development/Django/django_1.4.5/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))
Complete output from command python setup.py egg_info:
The required version of distribute (>=0.6.28) is not available,
and can't be installed while this script is running. Please
install a more recent version first, using
'easy_install -U distribute'.
(Currently using distribute 0.6.24 (/home/bradford/Development/Django/django_1.4.5/lib/python2.7/site-packages/distribute-0.6.24-py2.7.egg))
----------------------------------------
Command python setup.py egg_info failed with error code 2 in /home/bradford/Development/Django/django_1.4.5/build/MySQL-python
不太清楚如何去解決這個問題= /任何幫助,非常感謝!
真棒!非常感謝你! easy_install -U發佈了訣竅!謝謝!!! – Liondancer 2013-05-08 10:51:01
沒有probs,第一次我已經能夠回答這樣的問題,所以我經常問:) – d3vid 2013-05-08 11:45:21
我還沒有回答一個=/ – Liondancer 2013-05-09 01:46:56