通过
pip install mysqlclient时报出了OSError: mysql_config not found错误,如图:
image.png
原因是linux需要mysql相关的一些依赖包
yum install mysql-devel gcc gcc-devel python-devel
image.png
安装完毕后就可以正常
pip install mysqlclient了
通过
pip install mysqlclient时报出了OSError: mysql_config not found错误,如图:
image.png
原因是linux需要mysql相关的一些依赖包
yum install mysql-devel gcc gcc-devel python-devel
image.png
安装完毕后就可以正常
pip install mysqlclient了
本文标题:解决问题:OSError: mysql_config not f
本文链接:https://www.haomeiwen.com/subject/bpseiftx.html
网友评论