solution:
Use one of this commands, depends what os and software do u have and use
- easy_install mysql-python (mix os)
- pip install mysql-python (mix os)
- apt-get install python-mysqldb (Linux Ubuntu, ...)
- cd /usr/ports/databases/py-MySQLdb && make install clean (FreeBSD)
- yum install mysql-python (Linux Fedora, ...)
Reference : http://stackoverflow.com/questions/454854/no-module-named-mysqldb
No comments:
Post a Comment