pip install MySQL-python
If the prompt "error:. Microsoft Visual C ++ 9.0 is required Get it from http://aka.ms/vcpython27" on the prompt Web site to download and install VCForPython27.msi
After the installation continues: pip install MySQL-python
如果提示“ error: command 'C:\\Users\\aaron\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\amd64\\cl.exe' failed with exit status 2”
Go https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python download MySQL_python-1.2.5-cp27-none- win_amd64.whl, then you execute: PIP install MySQL_python-1.2.5-cp27- none-win_amd64.whl. The installation is complete!