“my_config.h” file not found when install mysql-python on osx 10.8

前端 未结 12 2055
礼貌的吻别
礼貌的吻别 2020-12-07 11:06

I face this problem when I want to install mysql-python on osx 10.8, it show error with \'my_config.h\' file not found.

Below is my running code:

sud         


        
12条回答
  •  广开言路
    2020-12-07 11:49

    As mentioned before, you need the dev headers for MySQL, which don't come with MAMP by default. Rather than using two instances of MySQL, it's possible to add the headers to the MAMP version. There are good instructions for doing so here: http://dreamconception.com/tech/how-to-install-mysqldb-mysql-python-on-mamp/

    Make sure not to just copy-paste all the commands, they're a bit out of date so you'll need to change the version numbers in some of them.

    I'm using OS X 10.9 and python 2.7, and everything works.

提交回复
热议问题