centos7 python3 安装mysqlclient

在centos7上

python3.6.8
创建virtualenv -p python3 venv

venv中pip3 install -y mysqlclient==2.0.1

报错

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yiqx1ego/mysqlclient/

解决办法

yum install -y python3-devel.x86_64

MySQL-python.x86_64(可不用安装)

mariadb-devel.x86_64

pip3 install mysqlclient==2.0.1

成功

centos7 python3 安装mysqlclient

上一篇:mysql


下一篇:三十六:WEB漏洞-逻辑越权之验证码与Token接口