centos7 安装 python3 mysqlclient 小记
程序员文章站
2022-03-03 16:56:54
...
使用centos7安装python3,在安装 mysqlclient的时候报错 /bin/sh mysql_config not found
因为需要安装 mariadb-devel ,之后再报错error: command 'gcc' failed with exit status 1
,缺乏 gcc
。之后还是报错,因为 还是未安装 python36u-devel
所以正确的安装应该是装完 yum install -y python36u
之后再安装 yum install python36u-devel mariadb-devel
yum install python36u python36u-devel
yum install gcc mariadb-devel
pip3 install mysqlclient