Python install MySQL Driver

Source: Internet
Author: User

python installed MySQL driver encountered problems:

CMD run pip install mysqlclient report module ' PIP ' has no attribute ' pep425tags ' ERROR:

That is, CMD cannot be installed via PIP install Mysqlclient, possibly because it does not conform to the Python version and can be

To see which symbols the PIP supports, run the following command:

amd64:cpu is a x64 , (note does not mean that the operating system is - bit of)

Import pip._internal

Print (pip._internal.pep425tags.get_supported ())

Win32 : Refers to Windows Operating System

Import pip

Print (pip.pep425tags.get_supported ())

Then download whl:https://www.lfd.uci.edu/~gohlke/pythonlibs/Open URL Search through the website mysqlclient

Then place its files under scripts in the Python installation directory

Under this path cmd enter pip install MYSQLCLIENT-1.3.13-CP36-CP36M-WIN_AMD64.WHL to install successfully

Python install MySQL Driver

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.