2017-08-02 238 views
0

我試圖安裝mysql模塊與PIP蟒蟒,但我得到了一個錯誤:安裝MySQL模塊與PIP

 
mysqlclient.lib(typelib.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(viosslfactories.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(my_winfile.obj) : error LNK2001: unresolved external symbol__iob_func 
mysqlclient.lib(my_messnc.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(client.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(my_thr_init.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(my_init.obj) : error LNK2001: unresolved external symbol __iob_func 
mysqlclient.lib(default.obj) : error LNK2001: unresolved external symbol __iob_func 
build\lib.win-amd64-3.6\_mysql.cp36-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals 
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1120 

回答

0

在Windows中使用python unofficial binaries安裝MySQL。使用這個鏈接並下載你的需求python包。

使用安裝它,

pip install ~/Downloads/mysqlclient‑1.3.10‑cp36‑cp36m‑win_amd64.whl 

從該鏈接的搜索MySQL的的mysql-1.3.10-CP36-cp36m-win_amd64.whl下載和安裝使用相同的PIP

+0

需求已經滿足:mysqlclient == 1.3.10來自file:/// D:/Downloads/mysqlclient-1.3.10-cp36-cp36m-win_amd64.whl in c:\ python36 \ lib \ site-packages –