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 with exit status 2

弄了两个多小时,才弄好,整理了一下解决办法如下:(我的环境是win7 64位系统,python2.7 32位版本)

1.先贴个网站https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python,东西都在这个网站下就行

2.先安装MySQL-python,即在上述网站下载MySQL_python?1.2.5?cp27?none?win32.whl,64位的话下载MySQL_python?1.2.5?cp27?none?win_amd64.whl,然后pip即可(不会pip的同学自行百度一下这个吧)

3.然后安装mysqlclient,下载对应版本的whl文件,我用的是mysqlclient?1.3.12?cp27?cp27m?win32.whl,然后pip

4.之后再pip Flask-MySQLdb即可

5.最后贴一下我成功图,预祝大家成功

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

原文地址:https://www.cnblogs.com/xinzhiyan/p/8352266.html

时间: 2024-11-05 14:52:16

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

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

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 s

_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

(转)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

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

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

fatal error C1083: 无法打开包括文件“jni.h”

在cocos2d-x vs2010编写HelloWorld中,想使用JniHelp对C++和java进行调试,出现错误: ..\cocos2dx\plateform\android\jni\jnihelp.h(27):fatal error c1083:无法打开包括文件“jni.h” 我使用的java路径在:C:\Program Files (x86)\Java\jdk1.6.0 vs2010工作目录在:C:\Program Files (x86)\Microsoft Visual Studio

afx.h(78): fatal error C1083: 无法打开包括文件: “new.h”: No such file or directory

vs2015新建mfc工程,编译错误: D:\program files (x86)\microsoft visual studio 14.0\vc\atlmfc\include\afx.h(78): fatal error C1083: 无法打开包括文件: "new.h": No such file or directory 解决办法:修改 项目->配置属性->VC++目录 中的包含目录和库目录