1. Django在同步数据库执行:python manage.py syncdb命令时,报如下错误:
raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
搜索下,好多人说缺少mysql-python第三方
2. 使用:pip install mysql-python安装mysql-python时,又报如下错误:
running build_ext
building '_mysql' extension
error: Unable to find vcvarsall.bat
只得又尝试另一种方法,直接下载.exe文件安装
3. 下载MySQL-python-1.2.3.win32-py2.7.exe安装后,ok
MySQL-python-1.2.3.win32-py2.7.exe下载地址: http://www.codegood.com/download/10/