_MYSQL.C: Fatal error C1083:cannot open include file: ' config-win.h ': Problem solving MySQL installation python

Source: Internet
Author: User

After you install Python under Win7 and want to install Python-mysql, the following issues occur with PIP installation:

>pip Install Mysql-python

_MYSQL.C: 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

The general explanation on the web is that reinstalling MySQL and installing MySQL is the option to install C + + compilers ...

I have not tried, but it certainly does not work ah, I just want to install a python can be remotely connected to the MySQL package, tube local MySQL what? Some explanations are really fraught.

But in the error hints also thanks to the lack of C + + environment, and later found on the Internet method:
Here's how:

1. In http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python download the corresponding package version, if it is Win7 64 bit 2.7 version of Python, download

Mysql_python-1.2.5-cp27-none-win_amd64.whl

Then execute pip install MYSQL_PYTHON-1.2.5-CP27-NONE-WIN_AMD64.WHL at the command line

Of course you need to jump to the directory under CMD to download MYSQL_PYTHON-1.2.5-CP27-NONE-WIN_AMD64.WHL

And then the installation was successful Mysql-python

Reference Links:

Http://www.cnblogs.com/fnng/p/4115607.html

_MYSQL.C: Fatal error C1083:cannot open include file: ' config-win.h ': Problem solving MySQL installation python

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.