No module named MySQLdb

ubuntu 14

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

未解决

sudo apt-get install libmysqlclient-dev

未解决

pip install mysqlclient

解决了!!

posted @ 2020-04-02 13:45  柚有有  阅读(670)  评论(0编辑  收藏  举报