Windows python2.7 installation of 64-bit mysqlclient

Source: Internet
Author: User
Tags windows x64

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

Related Article

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.