When using Python to call the MySQL database, you need to introduce the corresponding packet
Import MySQLdb
If you are prompted not to find the corresponding package, you will also need to install the corresponding Python package for the MySQL database client operation. In the PYTHON3 environment, or non-Windows environment is easy to install through the PIP and other tools, on the Windows X64 is difficult, if directly through the PIP installation, often need vs to compile, generally have a lot of errors and can not be resolved. You can choose to download the installation package and localize the installation directly.
Download MYSQLCLIENT-1.3.7-CP27-NONE-WIN_AMD64.WHL
Open the command line, switch to the directory where you downloaded the file, and then install
Pip Install MYSQLCLIENT-1.3.7-CP27-NONE-WIN_AMD64.WHL
Windows python2.7 installation of 64-bit mysqlclient