From 49f6d095ec9b12c34a49311d09d85f1fd842c7b0 Mon Sep 17 00:00:00 2001 From: tandede <1090179959@qq.com> Date: Wed, 19 Aug 2026 15:26:56 +0800 Subject: [PATCH] Fix NumPy 2 install incompatibility --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 581260a19..816b86a1d 100644 --- a/setup.py +++ b/setup.py @@ -88,7 +88,8 @@ base = [ "hyperpyyaml", "inflect", "jsonlines", - "numpy", + # OpenCV 4.6, pulled in by PaddleSlim, is built against the NumPy 1.x ABI. + "numpy<2", "librosa>=0.9", determine_scipy_version(), # scipy or scipy>=1.4.0, <=1.12.0 "loguru",