我刚刚学会了如何使用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