1.安裝Mysql-Python 官網即可
2.python setup.py install
3.安裝 VC++9.0 Compile for Python27 網址是 http://origin.www.ms.akadns.net/en-us/download/confirmation.aspx?id=44266
4.安裝 MySQL_python-1.2.5
5.在http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python下載對應的包版本,如果是win7 64位2.7版本的python,就下載
MySQL_python-1.2.5-cp27-none-win_amd64.whl
然後在命令行執行pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
當然需要在cmd下跳轉到下載MySQL_python-1.2.5-cp27-none-win_amd64.whl的目錄下
然後就安裝成功了MySQL-pythonp27-none-win_amd64.whl