mysql不在默认目录下的mysqlclient安装出错的解决办法

笔者使用的lnmp一键安装包构建的服务器环境,在部署django时, 使用pip install mysqlclient安装client报错: Complete output from command python setup.py egg_info: /bin/sh: mysql_config: command not found 解决办法: 1)到https://pypi.org 去直接下载该模块文件: wget https://files.pytho…

pip3 安装mysqlclient 出错解决办法

错误提示: Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-install*******/mysqlclient/ 解决办法: sudo apt-get install libmysqlclient-dev sudo pip3 install mysqlclient