mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
来源:互联网 发布:微信怎么分享淘宝链接 编辑:程序博客网 时间:2024/05/22 13:10
安装mysql-python之前, 请先安装setuptools. https://pypi.python.org/pypi/setuptools/7.0
下载mysql-python. 下载源码包. https://pypi.python.org/pypi/MySQL-python/1.2.5
解压后执行 python setup.py install
提示错误: fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
需要安装mysql connector 前往 http://dev.mysql.com/downloads/connector/c/6.0.html#downloads 根据python的版本下载32位或64位版本. 默认安装即可.
windows可能你还需要安装一个VCforpython2.7. 去微软官网下载即可。
再次执行 python setup.py install 安装成功.
如果还出现相同的错误, 请检查文件site.cfg 中connector 的值是否是你安装mysql connector的目录. 默认应该是 C:\Program Files(x86) \MySQL\MySQL Connector C 6.0.2 (32位) 或 C:\Program Files\MySQL\MySQL Connector C 6.0.2 (64位)
修改为你安装的目录即可.
0 0
- mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
- mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
- mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
- mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
- win7 64 安装mysql-python:fatal error C1083: Cannot open include file: 'config-win.h': No such file or
- 安装pymysql、mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h':
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory
- 关于VC6编译DirectSound Simple时fatal error C1083: Cannot open include file: 'dxerr9.h': No such file or direc
- Visual Studio 2013: fatal error C1083: Cannot open include file: 'winsock2.h': No such file or direc
- WINCE6错误:fatal error C1083: Cannot open include file: 'mbctype.h': No such file or
- Windows使用pip安装MySQL-python报错fatal error C1083: Cannot open include file: 'config-win.h'
- win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': N
- fatal error C1083: Cannot open include file: 'ProMenu.h': No such file or directory
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083 Cannot open include file 'iostream.h' No such file or directory 的解决方法
- fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
- fatal error C1083: Cannot open include file: 'htmlhelp.h': No such file or directory 解决办法
- 网易2017年暑期实习编程题之赶去公司
- ubuntu安装多个版本jdk
- IQKeyboardManager 使用
- Java反射最佳实践
- 深入理解Objective C的ARC机制
- mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or direc
- struts2的json-default和struts-default的区别
- php7 新特性之飞船运算符
- python逆序打印各位数字
- 通过自定义标签,实现 页面 按钮显示控制
- 求最大公约数
- Adaboost(1)——从了解到掌握
- 推荐一份 Google 面试指南
- CSS的浮动问题