標籤:mysql-python;mysqldb;
MySQL-python只是有32位系統安裝包,如果下載exe或者pip安裝,也會報錯。
報錯如下:
_mysql.c() : fatal error C1083: Cannot include : : No such directoryerror: command l.exe----------------------------------------Cleaning up...Command C:\Users\Admin1\Desktop\python\virtual\Scripts\python.exe -c uptools, tokenize;__file__=MySQL-python\\setup.pyead().replace(, ), __file__, ))\appdata\local\temp\\pip-pmwrd-record\install-record.txt --single-version-externally-managed ----install-headers C:\Users\Admin1\Desktop\python\virtual\include\site\python2failed error code C:\Users\Admin1\Desktop\python\virtual\build\MySQL-pythonStoring debug log failure C:\Users\Admin1\pip\pip.
需要安裝MYSQL資料庫和vc相關庫,而自己只需要方便遠端連線對伺服器資料庫操作和學習python,所以沒有必要安裝這些。
找到如下解決方案:
install using wheel
pip install wheel
MySQL_python安裝版本 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
下載後,直接使用pip安裝:
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
如下:
650) this.width=650;" src="http://s1.51cto.com/wyfs02/M01/7C/AC/wKiom1bVX_eQrP1eAAaimxlVzTc369.jpg" title="01.jpg" alt="wKiom1bVX_eQrP1eAAaimxlVzTc369.jpg" />
這樣就安裝成功。
本文出自 “都市布衣” 部落格,請務必保留此出處http://sunday208.blog.51cto.com/377871/1746404
關於windows x64安裝MySQL-python失敗解決