Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
Python 2.7.5 版本报错:ImportError: No module named MySQLdb
不同系统的解决办法
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, CentOS)
pip install mysqlclient (Windows)
更多内容请参考下面的这两个链接:
http://stackoverflow.com/questions/454854/no-module-named-mysqldb
http://stackoverflow.com/questions/21440230/install-mysql-python-windows
Add Comment
Please, Sign In to add comment