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

前端 未结 12 2025
礼貌的吻别
礼貌的吻别 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:46

    What worked for me in Nov 2020 for Catalina 10.15.7 and Python 2.7.16 was a combination of two answers:

    Step 1: https://stackoverflow.com/a/61800247/14686220

    However, instead of simply copying mysql.h file as my_config.h in the include/ directory (which can be dangerous), I copied the my_config.h file from the official MySQL docs

    Step 2: https://stackoverflow.com/a/54079052/14686220

提交回复
热议问题