Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-qhrdtysk/mysqlclient/(

【Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-qhrdtysk/mysqlclient/(】满堂花醉三千客,一剑霜寒十四州。这篇文章主要讲述Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-qhrdtysk/mysqlclient/(相关的知识,希望能为你提供帮助。
在linux中pip install mysqlclient时报错
解决方案:
先安装mysql

sudo apt-get -y install mysql-server sudo apt-get -y install mysql-client sudo apt-get -y install libmysqlclient-dev

然后再安装mysqlclient
pip install mysqlclient==2.0.1



    推荐阅读