pip install MySQL-python
如果提示“error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27” 就到提示的网址去下载安装 VCForPython27.msi
安装后继续执行: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”
去https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python下载MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl,然后执行:pip install MySQL_python‑1.2.5‑cp27‑none‑win_amd64.whl。安装完成!