_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
来源:互联网 发布:如何查询域名信息 编辑:程序博客网 时间:2024/06/06 00:48
在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'...
- CentOS7安装VMware Tools的方法、屏幕小问题
- QT 获取IP地址
- Struts2的工作流程(或者工作原理)
- Android Studio创建不同分辨率的图标
- rocketMQ 消息查询(id,key) 运维命令以及java API的用法
- _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h':问题的解决
- 纯css写弹窗 html
- 内存泄漏的场景及解决办法
- @Resource、@Autowired、@Qualifier的注解注入及区别
- Axios请求配置参数详解
- 第二周第2次课
- LeetCode #23
- LeetCode-48-Rotate Image 矩阵旋转90
- Json转换利器Gson之实例五-实际开发中的特殊需求处理(手动解析-TypeToken)