美文网首页
centos7 上 pip 安装 mysqlclient 时候报

centos7 上 pip 安装 mysqlclient 时候报

作者: sean_liu_01 | 来源:发表于2019-12-24 17:01 被阅读0次

centos7 上 pip 安装 mysqlclient 时候报错

使用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

相关文章

网友评论

      本文标题:centos7 上 pip 安装 mysqlclient 时候报

      本文链接:https://www.haomeiwen.com/subject/mpefoctx.html