django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info

环境:centos7 +  Django2.0 + python3.6

django2.0连接mysql需要安装PyMySQLmysqlclient

pip3 install PyMySQL

pip3  install  mysqlclient

 

在安装mysqlclient  报错

django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info_第1张图片

之后安装相关依赖

yum install  mysql-devel

yum install python-devel

再次安装 pip3  install  mysqlclient           ok!!!!!!!

django2.0 在安装mysqlclient 报错ERROR: Command errored out with exit status 1: python setup.py egg_info_第2张图片

你可能感兴趣的:(Django)