在python3.7的环境下,pip install mysqldb会安装失败。 原因是: python2和python3在数据库模块支持这里存在区别,python2是mysqldb,而到了python3就变成mysqlclient,
解决:
pip install mysqlclient即可。