321312222 发表于 2016-3-2 08:47:51

于windows x64安装MySQL-python失败解决

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

1
pip install wheel




MySQL_python安装版本 http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
下载后,直接使用pip安装:

1
pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl




如下:


这样就安装成功。

页: [1]
查看完整版本: 于windows x64安装MySQL-python失败解决