Fork me on GitHub

No module named MySQLdb

解决办法

easy_install mysql-python (mix os)
pip install mysql-python (mix os/ python 2)
pip install mysqlclient (mix os/ python 3)
apt-get install python-mysqldb (Linux Ubuntu, ...)
cd /usr/ports/databases/py-MySQLdb && make install clean (FreeBSD)
yum install MySQL-python (Linux Fedora, CentOS ...)

参考

posted @ 2018-11-01 11:55  削微寒  阅读(2137)  评论(0编辑  收藏  举报