Install the Python module using the PIP command in the Windows environment mysqlclient
Pip Install Mysqlclient
Error during installation [ERROR] Microsoft Visual C + + 14.0 is required
Then replace the other method to install, to this site download Mysqlclient installation package
https://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
Since the python3.6 version is installed locally, download MYSQLCLIENT-1.3.13-CP36-CP36M-WIN_AMD64.WHL
Download Link:
Https://download.lfd.uci.edu/pythonlibs/t5ulg2xd/mysqlclient-1.3.13-cp36-cp36m-win_amd64.whl
Copy the downloaded package to the scripts directory in the Python installation directory
For example, mine is D:\Program files\python3\scripts.
Then the command line Terminal CD to the directory
Finally install with PIP
Pip Install "MYSQLCLIENT-1.3.13-CP36-CP36M-WIN_AMD64.WHL"
However, this error will indicate that the platform does not support
according to the method provided by netizens
Enter the Python terminal
>>> import pip
>>> Print (pip.pep425tags.get_supported ()) #列出pip支持的文件名格式
[(' Cp36 ', ' cp36m ', ' win_amd64 '),
(' cp36 ', ' none ', ' win_amd64 '),
(' Py3 ', ' none ', ' win_amd64 '),
(' cp36 ', ' none ', ' any '),
(' CP3 ', ' none ', ' any '),
(' py36 ', ' none ', ' any '),
(' Py3 ', ' none ', ' any '),
(' py35 ', ' none ', ' any '),
(' py34 ', ' none ', ' any '),
(' py33 ', ' none ', ' any '),
(' py32 ', ' none ', ' any '),
(' py31 ', ' none ', ' any '),
(' py30 ', ' none ', ' any ')]
Then change the MYSQLCLIENT-1.3.13-CP36-CP36M-WIN_AMD64.WHL file name before installing
Try the previous few or prompt not supported
Finally the installation is complete after changing to MYSQLCLIENT-1.3.13-PY36-NONE-ANY.WHL
Check if the installation is successful
Windows installation module Mysqlclient error handling