Failed building wheel for mysql-python解决办法

出错信息如下:

Command "c:\users\june\envs\vueshop\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\June\\AppData\\Local\\Temp\\pip

-install-y_owp3eg\\mysqlclient\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compi
le(code, __file__, 'exec'))" install --record C:\Users\June\AppData\Local\Temp\pip-record-1j4yv2ch\install-record.txt --single-version-externa
lly-managed --compile --install-headers c:\users\june\envs\vueshop\include\site\python3.6\mysqlclient" failed with error code 1 in C:\Users\Ju

ne\AppData\Local\Temp\pip-install-y_owp3eg\mysqlclient\

在这个网址中,可以下载相应的包

Failed building wheel for mysql-python解决办法_第1张图片

打开终端,安装

Failed building wheel for mysql-python解决办法_第2张图片

就安装成功了。

Failed building wheel for mysql-python解决办法_第3张图片

你可能感兴趣的:(常见问题)