剛剛安裝了Django(使用easy_install)並創建了一個項目,但無法讓mysql正常工作。配置MySQL與Django配合使用
python manage.py syncdb
拋出這個錯誤:
.....
File "/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/db/backends/mysql/base.py", line 13, in <module>
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
我已經安裝了甲基苯丙胺和路徑MySQL的大概是:/Applications/MAMP/Library/bin/mysql
謝謝!
您是否安裝了MySQLdb python庫? – luc 2009-11-23 07:46:26