前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such fil

mysql-python:_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such fil

作者头像
似水的流年
发布2019-12-13 18:39:19
5130
发布2019-12-13 18:39:19
举报
文章被收录于专栏:电光石火电光石火

使用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:UsersfnngjAppDataLocalProgramsCommonMicrosoftVisual C ++ for Python9.0VCBinamd64cl.exe"' failed with exit status 2


Cleaning up... Command C:Python27python.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('rn', 'n'), _ _file__, 'exec'))" install --record c:usersfnngjappdatalocaltemppip-peervp -recordinstall-record.txt --single-version-externally-managed --compile failed with error code 1 in c:usersfnngjappdatalocaltemppip_build_fnngjMySQL-pyt hon Storing debug log for failure in C:Usersfnngjpippip.log

太奇怪了,以前是在ubuntu/deepin 系统可以安装。换成win10 64位就不行了。

安装:MySQL-python-1.2.3.win-amd64-py2.7.exe 就可以了(百度csdn下载可以找到)

我的驱动是从这儿下的,不行!https://pypi.python.org/pypi/MySQL-python/

也用 pip 装了,不行! C:Python27Scripts>pip install MySQL-python 这pip居然检测不出我的系统版本。 还有为啥python官网搜索不到这个 64位的驱动,我也是醉了。

希望这个问题被百度收录,遇到这个问题的人,别在被上面的答案忽悠了,真不管人家mysql的事儿。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019-05-29,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档