我在CMD窗口中使用以下内容:
pip install "ibm_db==2.0.8a" --no-cache-dir
这将引发错误:
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared\minwindef.h(157): warning C4142:
'BOOL': benign redefinition of type
c:\users\sumit singh\appdata\local\temp\pip-install-ff6jtuli\ibm-db\clidriver\include\sqlcli.h(886):
note: see declaration of 'BOOL'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(519): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(520): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(522): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(523): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(524): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(525): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(526): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(527): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(529): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(530): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(532): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(533): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(572): error C2061: syntax
error: identifier 'LPTCH'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(572): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(572): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(573): error C2061: syntax
error: identifier 'LPCTCH'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(573): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(573): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(574): error C2061: syntax
error: identifier 'PTSTR'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(574): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(574): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(575): error C2061: syntax
error: identifier 'PCTSTR'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(575): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(575): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(576): error C2061: syntax
error: identifier 'PZZTSTR'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(576): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(576): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(577): error C2061: syntax
error: identifier 'PCZZTSTR'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(577): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(577): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(578): error C2061: syntax
error: identifier 'PZPTSTR'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(578): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(579): error C2061: syntax
error: identifier 'PNZTCH'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(579): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(579): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(580): error C2061: syntax
error: identifier 'PCNZTCH'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(580): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(580): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(587): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(588): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(826): error C2061: syntax
error: identifier 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(827): error C2059: syntax
error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(830): error C2061: syntax
error: identifier 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(831): error C2059: syntax
error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(833): error C2059: syntax
error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(836): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(863): error C2061: syntax
error: identifier 'RTL_REFERENCE_COUNT32'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(863): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(863): error C2059: syntax
error: ','
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(875): error C2061: syntax
error: identifier 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(876): error C2059: syntax
error: '}'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): error C2143: syntax
error: missing ')' before 'const'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): error C2143: syntax
error: missing '{' before 'const'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2656): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2660): error C2143: syntax
error: missing ')' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2660): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2660): error C2373: 'Base':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): note: see declaration
of 'Base'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2661): error C2373: 'LONG':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): note: see declaration
of 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2661): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2662): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2666): error C2143: syntax
error: missing ')' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2666): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2666): error C2373: 'Base':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): note: see declaration
of 'Base'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2667): error C2373: 'LONG':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): note: see declaration
of 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2667): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2668): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2672): error C2143: syntax
error: missing ')' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2672): error C2143: syntax
error: missing '{' before '*'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2672): error C2373: 'Base':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): note: see declaration
of 'Base'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2673): error C2373: 'LONG':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): note: see declaration
of 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2673): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2674): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2678): error C2143: syntax
error: missing ')' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2678): error C2143: syntax
error: missing '{' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2678): error C2373: 'Base':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): note: see declaration
of 'Base'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2679): error C2373: 'LONG':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): note: see declaration
of 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2679): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2680): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2684): error C2143: syntax
error: missing ')' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2684): error C2143: syntax
error: missing '{' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2684): error C2373: 'Base':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2654): note: see declaration
of 'Base'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2685): error C2373: 'LONG':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2655): note: see declaration
of 'LONG'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2685): error C2146: syntax
error: missing ';' before identifier 'Offset'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2686): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2889): error C2061: syntax
error: identifier '_InterlockedIncrement16'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2889): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2890): error C2143: syntax
error: missing ')' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2890): error C2143: syntax
error: missing '{' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2891): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2894): error C2061: syntax
error: identifier '_InterlockedDecrement16'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2894): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2895): error C2143: syntax
error: missing ')' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2895): error C2143: syntax
error: missing '{' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2896): error C2059: syntax
error: ')'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2899): error C2061: syntax
error: identifier '_InterlockedCompareExchange16'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2899): error C2059: syntax
error: ';'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2900): error C2143: syntax
error: missing ')' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2900): error C2143: syntax
error: missing '{' before 'volatile'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2901): error C2146: syntax
error: missing ';' before identifier 'ExChange'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2902): error C2373: 'SHORT':
redefinition; different type modifiers
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2901): note: see declaration
of 'SHORT'
C:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um\winnt.h(2902): fatal error C1003:
error count exceeds 100; stopping compilation
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x64\\cl.exe'
failed with exit status 2
----------------------------------------
Command ""c:\program files\python37\python.exe" -u -c "import setuptools,
tokenize;__file__='C:\\Users\\SUMITS~1\\AppData\\Local\\Temp\\pip-install-ff6jtuli\\ibm-db\\setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record C:\Users\SUMITS~1\AppData\Local\Temp\pip-record-c6j243zj\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\SUMITS~1\AppData\Local\Temp\pip-install-ff6jtuli\ibm-db\
我无法理解我在这里做错了什么。我安装了Visual Studio 2017构建工具。 我正在运行Python 3.7.0(v3.7.0:1bf9cc5093,2018年6月27日,04:59:51)。
请告诉我在这里做什么。