ImportError: No module named MySQLdb

ImportError: No module named MySQLdb

解决方法:

1、安装mysql

sudo apt-get install mysql-server
sudo apt install mysql-client
sudo apt install libmysqlclient-dev

2.安装MySQL-python

pip install MySQLdb

你可能感兴趣的:(开发技巧)