注:
1.阿里云centos7安装了python2,python3,涉及到python3的使用pip3,python3;
2.centos7下已安装mysql5.7.29;
一、安装mysqlclient,pip3 install mysqlclient,报如下图错误;
二、解决方法,yum install mysql-devel,报如下错误;
三、mysql官网,下载5.7.29版的devel,然后安装;
四、安装mysql-devel; yum install mysql-devel
五、安装mysqlclient; pip3 install mysqlclient