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

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

    On macOS 10.15 so long as your project is compatible with PyMySQL 1.3.11 or newer, the following appears to resolve this problem:

    brew install mariadb-connector-c
    pip install MySQL-python
    

    Ref: https://github.com/PyMySQL/mysqlclient-python/blob/master/HISTORY.rst

提交回复
热议问题