You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

macOS安装pyicu==2.15(依赖icu=77.1)构建失败求助

构建pyicu==2.15失败问题记录

构建概览

  • 7毫秒内解析完成388个包
  • 成功构建cbor==1.0.0
  • 成功构建volcengine==1.0.146
  • × 构建pyicu==2.15失败
    • 构建后端返回错误
    • 调用setuptools.build_meta.build_wheel失败(退出状态:1)

构建日志详情

标准输出

(正在执行 'icu-config --version')

为ICU 77.1构建PyICU 2.15(支持的最高ICU主版本:77)

(正在执行 'icu-config --cxxflags --cppflags')
从/opt/homebrew/bin/icu-config添加CFLAGS="-std=c++17 -I/opt/homebrew/Cellar/icu4c@77/77.1/include"
(正在执行 'icu-config --ldflags')
从/opt/homebrew/bin/icu-config添加LFLAGS="-L/opt/homebrew/Cellar/icu4c@77/77.1/lib -licui18n -licuuc -licudata"
运行bdist_wheel
运行build
运行build_py
复制py/icu/__init__.py -> build/lib.macosx-11.0-arm64-cpython-311/icu
运行build_ext
构建'icu._icu_'扩展
c++ -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -mmacosx-version-min=11.0 -Wno-nullability-completeness
-Wno-expansion-to-defined -Wno-undef-prefix -fPIC -I/Users/helloworld/.cache/uv/builds-v0/.tmp1m9BaS/include
-I/Users/helloworld/.local/share/uv/python/cpython-3.11.11-macos-aarch64-none/include/python3.11 -c _icu_.cpp -o
build/temp.macosx-11.0-arm64-cpython-311/_icu_.o -std=c++17 -std=c++17 -I/opt/homebrew/Cellar/icu4c@77/77.1/include
-DPYICU_VER=\"2.15\" -DPYICU_ICU_MAX_VER=\"77\"

标准错误输出

<string>:42: 弃用警告:请使用shutil.which替代find_executable
<string>:42: 弃用警告:请使用shutil.which替代find_executable
/Users/helloworld/.cache/uv/builds-v0/.tmp1m9BaS/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: 用户警告:未知
分发选项:'test_suite'
  warnings.warn(msg)
/Users/helloworld/.cache/uv/builds-v0/.tmp1m9BaS/lib/python3.11/site-packages/setuptools/_distutils/dist.py:289: 用户警告:未知
分发选项:'tests_require'
  warnings.warn(msg)
/Users/helloworld/.cache/uv/builds-v0/.tmp1m9BaS/lib/python3.11/site-packages/setuptools/dist.py:759: Setuptools弃用警告:
  self._finalize_license_expression()
在从_icu_.cpp:27引入的文件中:
在从./common.h:107引入的文件中:
/opt/homebrew/Cellar/icu4c@77/77.1/include/unicode/unistr.h:35:10: 致命错误:未找到'cstddef'文件
   35 | #include <cstddef>
      |          ^~~~~~~~~
生成1个错误。
错误:命令'/usr/bin/c++'退出代码为1

提示:这通常表明包或构建环境存在问题。

依赖说明

pyicu==2.15由ragflow==0.19.0引入。

内容的提问来源于stack exchange,提问作者Daniel.Zhao

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.12 22:42:47