(py3不支持MYSQL-python 安裝)
通過 pip install MySQL-python-1.2.3.win-amd64-py2.7.exe,如果出現下面報錯信息:
Could not find a version that satisfies the requirement MySQL-python-1.2.3.win32-py2.7.exe (from versions: )
No matching distribution found for MySQL-python-1.2.3.win32-py2.7.exe
就表明你安裝的包出現了問題,這個時候後登陸
https://www.lfd.uci.edu/~gohlke/pythonlibs/
找到 MySQL_python-1.2.5-cp27-none-win32.whl(注意這裏面的後綴名是.whl不能是.exe),然後下載後重新安裝,
pip install MySQL_python-1.2.5-cp27-none-win32.whl
就成功了。
()