[英]Install mysql module for python with pip
I'm trying to install mysql module for python with pip, but I got an error: 我正在尝试使用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
in windows use python unofficial binaries to install MySQL. 在Windows中,请使用python非官方二进制文件来安装MySQL。 use this link and download your requirement python package.
使用此链接并下载您所需的python软件包。
install it using, 使用安装它,
pip install ~/Downloads/mysqlclient‑1.3.10‑cp36‑cp36m‑win_amd64.whl
from that link search mysql or mysqlclient‑1.3.10‑cp36‑cp36m‑win_amd64.whl download and install using same pip 从该链接搜索mysql或mysqlclient‑1.3.10‑cp36‑cp36m‑win_amd64.whl下载并使用相同的pip安装
我遇到了同样的错误,这对我来说已经解决了。
pip install --only-binary :all: mysqlclient
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.