Solutions to mysqlclient installation errors in python3.7

Source: Internet
Author: User
Recently, the installation of mysqlclient has been error, export to find information, pondering, roughly solve the following:
First, error hints
_MYSQL.C: Fatal error C1083: Cannot open include file: "Mysql.h": no such file
or directory
Error:command ' C:\Program Files (x86) \microsoft Visual Studio 14.0\vc\b
In\x86_amd64\cl.exe ' failed with exit status 2

Second, the question of thinking:
May be due to the Mysqlclient official website version too much, and Pip also do not know how to choose the cause of???
Third, solve the problem
1, from the official website download the appropriate version o Web links, such as I am in 64-bit WIN8 installed under the python3.7, select MYSQLCLIENT?1.3.13?CP37?CP37M?WIN_AMD64.WHL can be;
2. Install WHEEL:PIP installed wheel in this machine
3, in the 1th download MYSQLCLIENT?1.3.13?CP37?CP37M?WIN_AMD64.WHL in the folder in which to execute: Pip install Mysqlclient?1.3.13?cp37?cp37m?win_ Amd64.whl
Can.

Solutions to mysqlclient installation errors in python3.7

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.