pip install mysqlclient ERROR: Command errored out with exit status 1:
Posted _刘文凯_
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pip install mysqlclient ERROR: Command errored out with exit status 1:相关的知识,希望对你有一定的参考价值。
pip isntall mysqlclient 报错:ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm
错误原因:
缺少依赖
解决:
安装依赖:
$ sudo apt-get install libmysqlclient-dev # ubuntu系统
$ sudo yum install mysql-devel # centos系统
之后执行安装:
$ pip install mysqlclient
成功安装:
注意:确保安装了mysql-server,如何安装请查看:linux如何安装mysql
以上是关于pip install mysqlclient ERROR: Command errored out with exit status 1:的主要内容,如果未能解决你的问题,请参考以下文章
issue:Linux /opt/python36/bin/pip3.6 install mysqlclient报错:ERROR: Command errored out with exit(示例代码
使用pip install mysqlclient命令安装mysqlclient失败?(基于Python)
Linux上使用pip 安装mysqlclient,pip install mysqlclient==2.0.1遇到的问题:OSError: mysql_config not found