安装omero-py时zeroc-ice编译wheel失败求助
安装omero-py时zeroc-ice编译失败的问题
尝试安装omero-py,但始终卡在构建zeroc-ice的wheel环节,多次安装卸载Visual Studio Build Tools都没有效果。
错误日志
Building wheels for collected packages: zeroc-ice Building wheel for zeroc-ice (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for zeroc-ice (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [203 lines of output] <string>:111: SyntaxWarning: "is not" with a literal. Did you mean "!="? WARNING: '' not a valid package name; please use only .-separated package names in setup.py running bdist_wheel src/ice/cpp/include\IceUtil/Timer.h(105): error C2039: 'binary_function': is not a member of 'std' C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include\set(22): note: see declaration of 'std' src/ice/cpp/include\IceUtil/Timer.h(105): error C2504: 'binary_function': base class undefined src/ice/cpp/include\IceUtil/Timer.h(105): error C2143: syntax error: missing ',' before '<' error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\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 zeroc-ice Failed to build zeroc-ice
当前c_cpp_properties.json配置
{ "configurations": [ { "name": "Win32", "includePath": [ "${workspaceFolder}/**" ], "defines": [ "_DEBUG", "UNICODE", "_UNICODE" ], "windowsSdkVersion": "10.0.22621.0", "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.41.34120/bin/Hostx64/x64/cl.exe", "cStandard": "c17", "cppStandard": "c++17", "intelliSenseMode": "windows-msvc-x64" } ], "version": 4 }
已尝试的解决措施
- 切换不同C++标准版本,无效果
- 根据错误提示修改相关配置,未解决问题
内容的提问来源于stack exchange,提问作者Hamza Hasan
相关产品推荐
相关产品推荐

