作者:じ☆ve不哭
发布时间:2020-03-10T14:57:59
pip install mysqlclient, mysqlclient-1.4.6-cp38-cp38-win32.whl is not a supported wheel on this platform. python安装mysqlclient的时候提示如上错误。
直接cmd输入python 或者在python控制台输入如下内容
import sys; print('Python %s on %s' % (sys.version, sys.platform))
python 3.8 64bit
https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient
pip install C:\Users\zsljava\Desktop\mysqlclient-1.4.6-cp38-cp38-win_amd64.whl
提示错误:mysqlclient-1.4.6-cp38-cp38-win32.whl is not a supported wheel on this platform.
# python控制台输入:
import pip._internal; print(pip._internal.pep425tags.get_supported())
通过第一个参数可知,将文件名修改为mysqlclient-1.4.6-cp38-cp38m-win_amd64.whl即可(或者mysqlclient-1.4.6-cp38-none-win_amd64.whl)
pip install C:\Users\zsljava\Desktop\mysqlclient-1.4.6-cp38-cp38m-win_amd64.whl