centos部署django,安装mysqlclient时报错的解决办法

在centos部署django,安装mysqlclient时报错的解决办法
error: command ‘gcc’ failed with exit status 1

yum install python-devel -y
yum install mysql-devel -y
yum install gcc -y

yum install mysql-devel

pip install mysqlclient

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.
centos部署django,安装mysqlclient时报错的解决办法

django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.
centos部署django,安装mysqlclient时报错的解决办法