解决步骤

brew install mysql
brew unlink mysql
brew install mysql-connector-c
sed -i -e 's/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g' /usr/local/Cellar/mysql/8.0.13/bin/mysql_config //后面的路径就是你 mysql 的安装路径,这个尤为重要,就是路径问题报错的
pip install MySQL-python
brew unlink mysql-connector-c
brew link --overwrite mysql

 

 

来源:https://stackoverflow.com/questions/12218229/my-config-h-file-not-found-when-intall-mysql-python-on-osx-10-8/12233148

 

相关文章:

  • 2021-08-15
  • 2022-12-23
  • 2022-12-23
  • 2021-03-26
  • 2021-06-08
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-08-21
  • 2021-12-20
相关资源
相似解决方案