1. 程式人生 > >Failed building wheel for mysql-python解決辦法

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\

在這個網址中,可以下載相應的包


開啟終端,安裝


就安裝成功了。