直接 pip install 失败
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
Mysqlclient: MySQL数据库的 MySQL-python接口的分支。 mysqlclient‑1.4.6‑pp373‑pypy36_pp73‑win32.whl mysqlclient-1.4.6-cp39-cp39-win_amd64.whl mysqlclient-1.4.6-cp39-cp39-win32.whl mysqlclient-1.4.6-cp38-cp38-win_amd64.whl mysqlclient-1.4.6-cp38-cp38-win32.whl mysqlclient-1.4.6-cp37-cp37m-win_amd64.whl mysqlclient-1.4.6-cp37-cp37m-win32.whl mysqlclient-1.4.6-cp36-cp36m-win_amd64.whl mysqlclient-1.4.6-cp36-cp36m-win32.whl mysqlclient-1.4.6-cp35-cp35m-win_amd64.whl mysqlclient-1.4.6-cp35-cp35m-win32.whl mysqlclient-1.4.6-cp27-cp27m-win_amd64.whl mysqlclient-1.4.6-cp27-cp27m-win32.whl mysqlclient‑1.3.13‑cp34‑cp34m-win_amd64.whl mysqlclient‑1.3.13‑cp34‑cp34m-win32.whl
pip install 又失败
(venv) C:Usersxxxxx>python Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pip._internal >>> print(pip._internal.pep425tags.get_supported()) #列出pip支持的文件名格式 [('cp38', 'cp38m', 'win32'), ('cp38', 'none', 'win32'), ('py3', 'none', 'win32'), ('cp38', 'none', 'any'), ('cp3', 'none', 'any'), ('py3 8', 'none', 'any'), ('py3', 'none', 'any'), ('py37', 'none', 'any'), ('py36', 'none', 'any'), ('py35', 'none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')] >>>
改名 mysqlclient-1.4.6-cp38-cp38-win32.whl --> mysqlclient-1.4.6-cp38-cp38m-win32.whl
安装ok!