MySQL-Python installation tutorial (windows) version

First, I propose to learn Python not to use the windows system, plug-in installed it is really in trouble

Computer environment: win10 64 Wei

1. First we have to download MySQL-python plug-in drive, https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal . The recommended drive route downloaded, installed in (C plate), we easily installed, the computer 64 at 64, 32 of the 32

2. Download the driver were finished, Windows + r to open   cmd (command prompt) , then we find the configuration directory FLASK virtual environment where, below is my directory, you must find a directory of your installation. Must be in the Scripts directory, type: PIP install MySQL-Python

3. This is a bunch of error will be reported at this time do not panic. this is normal phenomenon.

4. This is our CMD (command prompt) path switching to just download the driver folder, type the command cd .. , until you find the folder where the driver files,

5. Type command PIP MySQL_python the install-1.2.5-cp27-none-win_amd64.whl , found failure.

This is because the file name format is not supported forced it to support a change of name to install it's

6. Because my python version 3.8 is installed , so the drive to find the file folder where we will drive name to MySQL_python-1.2.5-cp38-none- win_amd64.whl

7.重新键入 pip install MySQL_python-1.2.5-cp38-none-win_amd64.whl,安装成功。

最后,如果我写的文章真的帮了大家的一个小忙,请不要吝啬给点个赞,如果想同我一起学习进步的话,可以关注我一下,本人QQ:2992789432.

 

发布了45 篇原创文章 · 获赞 96 · 访问量 1万+

Guess you like

Origin blog.csdn.net/qq_40831778/article/details/102985714