此方案只测试了mysql8.0以上版本。 xcode-select –installbrew install mysql下载mysql-python源码压缩包并解压,切换到解压目录下python setup.py build若出现# include