Mac 安装 MySQL-python 报错

Mac 上搭建 Python 2.7 环境,发现这个错:

安装 MySQL-python 报错的情况:
ld: file not found: python.exe
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command ‘clang’ failed with exit status 1

—————————————-
Failed building wheel for MySQL-python

网上找的不少方法都没能解决,最终在 http://stackoverflow.com/questions/27259830/cant-build-python-gevent-on-mac-osx-10-10 找到了办法。将安装的 2.7.6 升级即可,我升的 2.7.12。