我试图用pip为python安装mysql模块,但是我收到了一个错误:
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 :(得分:0)
使用python unofficial binaries来安装MySQL。使用此链接并下载您的需求python包。
使用
安装它from scipy.stats import norm as normal
y_pred, std = gpr.predict(x[:, None], return_std=True)
sum_log_lik = np.sum( normal.logpdf(loc=y_pred, scale=std, x=y1) )
从该链接搜索 mysql 或 mysqlclient-1.3.10-cp36-cp36m-win_amd64.whl 下载并使用相同的点子安装
答案 1 :(得分:0)
我遇到了同样的错误,因此为我修复了该错误。
pip install --only-binary :all: mysqlclient