_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
来源:互联网 发布:汇编语言用什么软件 编辑:程序博客网 时间:2024/06/06 01:53
在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\Visual C ++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2
网上一般的解释是,重新安装mysql并在安装mysql是选择安装c++的编译器。。。
我虽然没试过,但感觉肯定行不通啊,我只是想装一个可以让python远程连接mysql的包而已,管本地mysql什么事?有些解释真是误人子弟。
但错误提示里也谢了缺少C++的相关环境,后来在网上找到方法了:
方法如下:
1.在http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python下载对应的包版本,如果是win7 64位2.7版本的python,就下载
MySQL_python-1.2.5-cp27-none-win_amd64.whl
然后在命令行执行pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl
当然需要在cmd下跳转到下载MySQL_python-1.2.5-cp27-none-win_amd64.whl的目录下
然后就安装成功了MySQL-python
参考链接:
http://www.cnblogs.com/fnng/p/4115607.html
- _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':no such file or directory
- 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' 非权威指南
- 安装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
- win7 64 安装mysql-python:fatal error C1083: Cannot open include file: 'config-win.h': No such file or
- 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: 'uxtheme.h'的解决
- fatal error C1083: Cannot open include file: 'qwtplot.h':
- 关于“fatal error C1083: Cannot open include file: 'resource.h': No such file or directory”问题
- VS2008 winpcap配置(解决fatal error C1083: Cannot open include file: 'sys/time.h'...
- 用两个栈实现一个队列
- port-security 交换安全技术
- Python: tkinter窗口屏幕居中,设置窗口最大,最小尺寸
- 超越对手的网站定位和用户体验的思维
- 在gridview中完全实现某一列的隐藏并取值
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- 宽搜模版
- 4个数和为0
- Android_MVP之错误异常信息收集处理 CrashHandler
- I2S和PCM
- mysql 小技巧
- python爬虫-多进程
- java两种方式实现死锁
- Solr-6.5.1从mysql数据库全量导入数据