mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

安装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位版本. 默认安装即可.

再次执行 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位)

修改为你安装的目录即可.

mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

时间: 2024-10-02 10:30:12

mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory的相关文章

fatal error C1083: 无法打开包括文件:“xx/xx.h”: No such file or directory

路径包含都正确,可是怎么都编译不通过. 解决方法:项目属性 --> 配置属性 --> 常规 -->平台工具集,选择带X64的那个就好了,之前选的是win32,因为我的笔记本是64位的. x86 就是32位的 也就是平常说的x32x64 就是64位的 目前windows就是这两种,一般家用系统都是32位的,因为兼容性高,也便宜.不过,32位的支持最大内存没有64的高..

_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决 mysql安装python

在win7下安装了Python后,想安装python-MySQL,使用pip安装出现如下问题: >pip install MySQL-python _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory error: command '"C:\Users\fnngj\AppData\Local\Programs\Common\Microsoft

python2安装Flask-MySQLdb出现 fatal error C1083: Cannot open include file: 'mysql.h': No su ch file or directory

错误具体内容如下: _mysql.c(29) : fatal error C1083: Cannot open include file: 'mysql.h': No such file or directory    error: command 'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed w

VS2012与VS2015同时安装用VS2012创建MFC程序时弹出编译错误”fatal error C1083: 无法打开包括文件:“mprapidef.h”: No such file or directory”的解决办法

在WIndows 7操作系统上同时安装VS2012与VS2015并用VS2012创建MFC程序时弹出编译错误"fatal error C1083: 无法打开包括文件:"mprapidef.h": No such file or directory"的解决办法: I installed vs2015 and vs2012, then the same problem occurs,however, I find a solution. open visual stud

win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

http://www.cnblogs.com/fnng/p/4115607.html http://www.crifan.com/python_install_module_mysql_mysqldb/comment-page-1/ ======================== 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open

(转)win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory

原文地址:http://www.cnblogs.com/fnng/p/4115607.html 作者:虫师 今天想在在win7 64位环境下使用python 操作mysql 在安装MySQL-python 时报错: _mysql.c _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s uch file or directory error: command '"C:\Users\fnng

fatal error C1083: Cannot open include file: 'qttreepropertybrowser.moc': No such file or directory

编译QtPropertyBrowser的时候出错.要用moc来生成.moc文件.我好奇的是与之前的通过.h生成moc_xxx.cpp不一样. 要用以下命令.一般来说是处理带Q_OBJECT宏的.h文件,但是下面不同了. moc qttreepropertybrowser.cpp > qttreepropertybrowser.moc moc qtpropertymanager.cpp > qtpropertymanager.moc moc qteditorfactory.cpp > qt

Visual Studio 2013: fatal error C1083: Cannot open include file: 'XXX.h': No such file or directory

So to do this in Visual Studio, open up Solution Explorer, right click on the main project's name and then select Properties. In the window that appears go to Configuration Properties->C/C++->General and in Additional Include Directories add the pat

Cocos2d-x 3.1.1 学习日志17--移植出现error C1083: 无法打开包括文件:“extensions/ExtensionMacros.h”: No such file or

今天在做2.x移植到3.1.1的时候候导入扩展包出现了错误,经过多方查找,最后终于把问题解决了,分享出来,给大家提供一个参考. 第一步,我们需要导入三个包,导入方式:解决方案(右键)->添加->现有项目 导入第一个libGUI.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\cocos\ui\proj.win32) 导入第二个libExtensions.vcxproj  (H:\mycompany\EditBoxTest\cocos2d\extension