ubuntu上安装mysqlclient报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check

报错如下
ubuntu上安装mysqlclient报错ERROR: Command errored out with exit status 1: python setup.py egg_info Check_第1张图片

在国外的论坛上看到一句话

mysqlclient requires that you have the development package for MySql installed. This is usually something like apt install libmysqlclient-dev

我一想,自己安装了mysql了呀,
于是尝试着试一试的心态安装一下这个库

apt-get install libmysqlclient-dev

再次安装成功,这个库是mysql的C/C++接口好像

你可能感兴趣的:(Error,ubuntu,python,mysql)