-
Notifications
You must be signed in to change notification settings - Fork 2
Python_MySql
zjy edited this page Jul 13, 2016
·
1 revision
TP:FCEE652B
环境 : win7 64 bit python 2.7 64 bit
easy_intall MySQL-Python 报错
error: Setup script exited with error: Microsoft Visual C++ 9.0 is required (Una
ble to find vcvarsall.bat). Get it from http://aka.ms/vcpython27
好像要下一个什么编译器,我下好以后,继续安装
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
感觉是缺少了什么配置文件,瞬间就无语了
google之
Windows下安装mysql-python(MySQLdb)诺干问题及解决方法
基本上我碰到的问题上面的也碰到了
其实很简单,直接用exe安装就可以了
网上搜了一下,既可以用Pip install **.whl, 也可以直接用 (MySQL-python-1.2.5.win-amd64-py2.7 网盘共享 访问密码 2ba8) 就可以了
注意这里是 64bit 指的是64-bit Python environment,不是你 64 bit Operate system, 如果你是32-bit Python environment 在 64 bit Operate system上 要用这个MySQL-python-1.2.5.win32-py2.7.exe
另外还有MySQLdb 作者发布的exe 这个好像还只支持到1.2.3
结果:

参考: