阿里云centos7安装mysqlclient,报错mysql_config:command not found

注:

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

posted on 2020-01-17 11:29  星空6  阅读(1599)  评论(0)    收藏  举报

导航