下载Python SQL时出错

下载Python SQL时出错,python,mysql,windows-10,Python,Mysql,Windows 10,当我尝试安装SQL时,会与Microsoft Visual Studio发生冲突。 请派人来帮忙。我使用easy install来安装它,我也尝试了其他5个可选命令,但我一直与Visual Studio产生冲突,在添加或删除程序(2015)版本中找不到它。我还安装了连接器 $ easy_install mysql-python Searching for mysql-python Reading https://pypi.org/simple/mysql-python/

当我尝试安装SQL时,会与Microsoft Visual Studio发生冲突。 请派人来帮忙。我使用easy install来安装它,我也尝试了其他5个可选命令,但我一直与Visual Studio产生冲突,在添加或删除程序(2015)版本中找不到它。我还安装了连接器

$ easy_install mysql-python
    Searching for mysql-python
    Reading https://pypi.org/simple/mysql-python/
    Downloading https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip#sha256=811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74
    Best match: MySQL-python 1.2.5
    Processing MySQL-python-1.2.5.zip
    Writing C:\Users\Suhasm\AppData\Local\Temp\easy_install-uciw2yjf\MySQL-python-1.2.5\setup.cfg
    Running MySQL-python-1.2.5\setup.py -q bdist_egg --dist-dir C:\Users\Suhasm\AppData\Local\Temp\easy_install-uciw2yjf\MySQL-python-1.2.5\egg-dist-tmp-4jbv49w6
    _mysql.c
    C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(192): warning C4005: 'isnan': macro redefinition
    C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt_math.h(275): note: see previous definition of 'isnan'
    C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(203): warning C4005: 'SIZEOF_OFF_T': macro redefinition
    c:\users\suhasm\appdata\local\programs\python\python36-32\include\pyconfig.h(324): note: see previous definition of 'SIZEOF_OFF_T'
    C:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include\config-win.h(301): warning C4005: 'HAVE_STDDEF_H': macro redefinition
    c:\users\suhasm\appdata\local\programs\python\python36-32\include\pyconfig.h(602): note: see previous definition of 'HAVE_STDDEF_H'
    _mysql.c(297): warning C4090: '=': different 'const' qualifiers
    _mysql.c(327): warning C4090: '=': different 'const' qualifiers
    _mysql.c(623): warning C4090: '=': different 'const' qualifiers
    _mysql.c(624): warning C4090: '=': different 'const' qualifiers
    _mysql.c(625): warning C4090: '=': different 'const' qualifiers
    _mysql.c(626): warning C4090: '=': different 'const' qualifiers
    _mysql.c(627): warning C4090: '=': different 'const' qualifiers
    _mysql.c(1118): warning C4090: '=': different 'const' qualifiers
    _mysql.c(1161): warning C4090: '=': different 'const' qualifiers
    _mysql.c(1165): warning C4090: '=': different 'const' qualifiers
    _mysql.c(1532): warning C4018: '<': signed/unsigned mismatch
       Creating library build\temp.win32-3.6\Release\_mysql.cp36-win32.lib and object build\temp.win32-3.6\Release\_mysql.cp36-win32.exp
    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
    mysqlclient.lib(default.obj) : error LNK2001: unresolved external symbol _printf
    build\lib.win32-3.6\_mysql.cp36-win32.pyd : fatal error LNK1120: 2 unresolved externals
    error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\link.exe' failed with exit status 1120
$easy\u安装mysql python
搜索mysql-python
阅读https://pypi.org/simple/mysql-python/
正在下载https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68debe7a7091f068d802fc515a3a202652828c73453cad/MySQL-python-1.2.5.zip#sha256=811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e140c74
最佳匹配:MySQL python 1.2.5
处理MySQL-python-1.2.5.zip
编写C:\Users\Suhasm\AppData\Local\Temp\easy\u install-uciw2yjf\MySQL-python-1.2.5\setup.cfg
运行MySQL-python-1.2.5\setup.py-q bdist\u egg--dist dir C:\Users\Suhasm\AppData\Local\Temp\easy\u install-uciw2yjf\MySQL-python-1.2.5\egg-dist-tmp-4jbv49w6
_mysql.c
C:\ProgramFiles(x86)\MySQL\MySQL Connector C 6.0.2\include\config win.h(192):警告C4005:“isnan”:宏重新定义
C:\Program Files(x86)\Windows Kits\10\include\10.0.16299.0\ucrt\corecrt\u math.h(275):注意:请参见前面对“isnan”的定义
C:\Program Files(x86)\MySQL\MySQL Connector C 6.0.2\include\config win.h(203):警告C4005:“SIZEOF\u OFF\u T”:宏重新定义
c:\users\suhasm\appdata\local\programs\python36-32\include\pyconfig.h(324):注意:请参见前面对“SIZEOF OFF”的定义
C:\Program Files(x86)\MySQL\MySQL Connector C 6.0.2\include\config win.h(301):警告C4005:“HAVE_STDDEF_h”:宏重新定义
c:\users\suhasm\appdata\local\programs\python36-32\include\pyconfig.h(602):注意:请参见“HAVE\u STDDEF\u h”的先前定义
_c(297):警告C4090:“=”:不同的“const”限定符
_c(327):警告C4090:“=”:不同的“const”限定符
_c(623):警告C4090:“=”:不同的“const”限定符
_c(624):警告C4090:“=”:不同的“const”限定符
_c(625):警告C4090:“=”:不同的“const”限定符
_c(626):警告C4090:“=”:不同的“const”限定符
_c(627):警告C4090:“=”:不同的“const”限定符
_c(1118):警告C4090:“=”:不同的“const”限定符
_c(1161):警告C4090:“=”:不同的“const”限定符
_c(1165):警告C4090:“=”:不同的“const”限定符
_c(1532):警告C4018:“你试过了吗
pip安装mysqlclient

是的,我通过下载二进制文件修复了它

pip install --only-binary :all: mysqlclient
可能重复的