win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': N
来源:互联网 发布:平野美宇萝莉 知乎 编辑:程序博客网 时间:2024/06/05 14:11
今天想在在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\fnngj\AppData\Local\Programs\Common\Microsoft\Visual C ++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
----------------------------------------
Cleaning up... Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\use rs\\fnngj\\appdata\\local\\temp\\pip_build_fnngj\\MySQL-python\\setup.py';exec(c ompile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), _ _file__, 'exec'))" install --record c:\users\fnngj\appdata\local\temp\pip-peervp -record\install-record.txt --single-version-externally-managed --compile failed with error code 1 in c:\users\fnngj\appdata\local\temp\pip_build_fnngj\MySQL-pyt hon Storing debug log for failure in C:\Users\fnngj\pip\pip.log
太奇怪了,以前是在ubuntu/deepin 系统可以安装。换成win7 64位就不行了。
按理说win7都出来这么多年了,python也更新的这么猛的语言,怎么链接mysql就不行了。
百度了半天,找到了以下答案:
----------------------------------------------
1)问题:_mysql.c(34) : fatal error C1083: Cannot open include file: ‘config-win.h’: No such file or directory error: command ‘”C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN\cl.exe”‘ failed with exitstatus 2
原因:原因是安装MySQL的时候没有安装C语言库。
解决:重新运行MySQL的安装程序,选择Modify,把“C Include Files / Lib Files”勾选上,并安装。
---------------------------------------------
百度来百度去,就这么一个答案,都是复制粘贴的。害我反复把mysql装了几遍,跟本他妈的没找到“C Include Files / Lib Files” 选项在哪儿? 也许是mysql新版本没这选项了。
最后不得不FQ出去看看了。
原来还是驱动问题,关人家mysql啥事儿!
安装:MySQL-python-1.2.3.win-amd64-py2.7.exe 就可以了(百度csdn下载可以找到)
我的驱动是从这儿下的,不行!
https://pypi.python.org/pypi/MySQL-python/
也用 pip 装了,不行!
C:\Python27\Scripts>pip install MySQL-python
这pip居然检测不出我的系统版本。 还有为啥python官网搜索不到这个 64位的驱动
- win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': N
- mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h' 非权威指南
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- win7 64 安装mysql-python:fatal error C1083: Cannot open include file: 'config-win.h': No such file or
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':no such file or directory
- 安装pymysql、mysql-python 安装错误 fatal error C1083: Cannot open include file: 'config-win.h':
- 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
- Windows使用pip安装MySQL-python报错fatal error C1083: Cannot open include file: 'config-win.h'
- fatal error C1083: Cannot open include file: 'qwtplot.h':
- mysql-python 安装错误: Cannot open include file: 'config-win.h': No such file or directory
- fatal error C1083: Cannot open include file
- fatal error C1083: Cannot open include file:
- Android-Java中的回调函数
- 第三方库
- MATLAB中文件的读写和数据的导入导出【转】
- 特征选择方法
- CentOS 7 网络配置
- win7 64 安装mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': N
- 图解android开发在界面上显示图片
- MTK 影像工具分析介绍
- oracle 判断今天是星期几
- Java集合---LinkedList源码解析
- mochiweb源码阅读2-连接处理
- ansj5.0.1分词例子
- sprak报错
- Mysql性能调优笔记(第一部分)