>D:\python\3_8\python.exe -m pip install fairseq
......
Building wheel for fairseq (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for fairseq (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1585 lines of output]
running bdist_wheel
running build
running build_py
"D:\应用\vs ide\community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\python\3_8\include -ID:\python\3_8\Include "-ID:\应用\vs ide\community\VC\Tools\MSVC\14.35.32215\include" "-ID:\应用\vs ide\community\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-ID:\应用\vs ide\community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\应用\vs ide\community\VC\Tools\MSVC\14.35.32215\include" "-ID:\应用\vs ide\community\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-ID:\应用\vs ide\community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpfairseq/clib/libbleu/libbleu.cpp /Fobuild\temp.win-amd64-cpython-38\Release\fairseq/clib/libbleu/libbleu.obj -std=c++11 -O3
cl: 命令行 warning D9002 :忽略未知选项“-std=c++11”
cl: 命令行 warning D9002 :忽略未知选项“-O3”
libbleu.cpp
D:\python\3_8\include\cmath(36): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(36): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(37): error C2039: "acosf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(37): error C3861: “acosf”: 找不到标识符
D:\python\3_8\include\cmath(40): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(40): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(40): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(41): error C2039: "acoshf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(41): error C3861: “acoshf”: 找不到标识符
D:\python\3_8\include\cmath(44): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(44): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(44): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(45): error C2039: "asinf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(45): error C3861: “asinf”: 找不到标识符
D:\python\3_8\include\cmath(48): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(48): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(48): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(49): error C2039: "asinhf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(49): error C3861: “asinhf”: 找不到标识符
D:\python\3_8\include\cmath(52): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(52): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(52): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(53): error C2039: "atanf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(53): error C3861: “atanf”: 找不到标识符
D:\python\3_8\include\cmath(56): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(56): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(56): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(57): error C2039: "atanhf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(57): error C3861: “atanhf”: 找不到标识符
D:\python\3_8\include\cmath(60): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(60): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(60): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(61): error C2039: "atan2f": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(61): error C3861: “atan2f”: 找不到标识符
D:\python\3_8\include\cmath(64): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(64): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(64): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(65): error C2039: "cbrtf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(65): error C3861: “cbrtf”: 找不到标识符
D:\python\3_8\include\cmath(68): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(68): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(68): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(70): error C3861: “__ceilf”: 找不到标识符
D:\python\3_8\include\cmath(78): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(78): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(78): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(80): error C3861: “__copysignf”: 找不到标识符
D:\python\3_8\include\cmath(88): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(88): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(88): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(89): error C2039: "cosf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(89): error C3861: “cosf”: 找不到标识符
D:\python\3_8\include\cmath(92): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(92): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(92): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(93): error C2039: "coshf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(93): error C3861: “coshf”: 找不到标识符
D:\python\3_8\include\cmath(96): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(96): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(96): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(97): error C2039: "erff": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(97): error C3861: “erff”: 找不到标识符
D:\python\3_8\include\cmath(100): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(100): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(100): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(101): error C2039: "erfcf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(101): error C3861: “erfcf”: 找不到标识符
D:\python\3_8\include\cmath(104): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(104): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(104): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(105): error C2039: "expf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(105): error C3861: “expf”: 找不到标识符
D:\python\3_8\include\cmath(108): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(108): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(108): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(109): error C2039: "exp2f": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(109): error C3861: “exp2f”: 找不到标识符
D:\python\3_8\include\cmath(112): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(112): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(112): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(113): error C2039: "expm1f": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(113): error C3861: “expm1f”: 找不到标识符
D:\python\3_8\include\cmath(116): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(116): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(116): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(117): error C2039: "fabsf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(117): error C3861: “fabsf”: 找不到标识符
D:\python\3_8\include\cmath(120): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(120): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(120): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(121): error C2039: "fdimf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(121): error C3861: “fdimf”: 找不到标识符
D:\python\3_8\include\cmath(124): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(124): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(124): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(126): error C3861: “__floorf”: 找不到标识符
D:\python\3_8\include\cmath(134): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(134): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(134): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(135): error C2039: "fmaf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(135): error C3861: “fmaf”: 找不到标识符
D:\python\3_8\include\cmath(138): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(138): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(138): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(139): error C2039: "fmaxf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(139): error C3861: “fmaxf”: 找不到标识符
D:\python\3_8\include\cmath(142): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(142): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(142): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(143): error C2039: "fminf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(143): error C3861: “fminf”: 找不到标识符
D:\python\3_8\include\cmath(146): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(146): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(146): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(147): error C2039: "fmodf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(147): error C3861: “fmodf”: 找不到标识符
D:\python\3_8\include\cmath(151): error C2039: "frexpf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(151): error C3861: “frexpf”: 找不到标识符
D:\python\3_8\include\cmath(154): error C2144: 语法错误:“float”的前面应有“;”
D:\python\3_8\include\cmath(154): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(154): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(155): error C2039: "hypotf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(155): error C3861: “hypotf”: 找不到标识符
D:\python\3_8\include\cmath(158): error C2144: 语法错误:“int”的前面应有“;”
D:\python\3_8\include\cmath(158): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
D:\python\3_8\include\cmath(158): error C2086: “int _NODISCARD”: 重定义
D:\python\3_8\include\cmath(36): note: 参见“_NODISCARD”的声明
D:\python\3_8\include\cmath(159): error C2039: "ilogbf": 不是 "`global namespace'" 的成员
D:\python\3_8\include\cmath(159): fatal error C1003: 错误计数超过 100;正在停止编译
error: command 'D:\\应用\\vs ide\\community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fairseq
Failed to build fairseq
ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects
Visual Studio: