我试图用easy_install来安装MySQL-python。它几乎立即失败:python easy_install:指定目录中所需的文件所需的文件
_mysql.c:36:23: error: my_config.h: No such file or directory
_mysql.c:38:19: error: mysql.h: No such file or directory
_mysql.c:39:26: error: mysqld_error.h: No such file or directory
_mysql.c:40:20: error: errmsg.h: No such file or directory
它无法找到标题。我已经安装了这些头文件,它们只是从源代码安装在/ opt中。显然不是在那里看。我如何让它看起来那里?例如,如果这是配置,我可以做一些像“--with-mysql =/opt/mysql”。它没有出现easy_install这样的选项。仍在研究如果我找到我的答案,我会在这里发布。
我想知道为什么easy_install/pip不尊重我的INCLUDE_PATH env var。感谢这篇文章。 –
该解决方案对我无效。相反,我能够通过安装pkg-config(sudo apt-get install pkg-config)来解决错误。 – taranaki