windows环境下pip 安装 MySQL-python

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。安装完成!

posted @ 2020-01-22 10:11  aaron_agu  阅读(912)  评论(0编辑  收藏  举报