From 1b16c01afd26f5f8f17d2e5e603622ed503d119c Mon Sep 17 00:00:00 2001 From: Mengqing Cao Date: Sat, 25 Oct 2025 18:18:28 +0800 Subject: [PATCH] [v0.11.0-dev][Installation] limit opencv-python-headless version to resolve numpy version conflict (#3767) ### What this PR does / why we need it? vllm requires opencv-python-headless >= 4.11.0 which requires (numpy<2.3.0,>=2), but vllm-ascend numpy version must be less than 2.0.0, so limit opencv-python-headless less than 4.11.0.86 will fix this conflict. backport of https://github.com/vllm-project/vllm-ascend/commit/afc58184ec848babe40f89db3537746b9113e099 Signed-off-by: 22dimensions Co-authored-by: 22dimensions --- pyproject.toml | 1 + requirements.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 1a140ce..8ac1b7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,6 +19,7 @@ requires = [ "msgpack", "quart", "numba", + "opencv-python-headless<=4.11.0.86", # Required to avoid numpy version conflict with vllm ] build-backend = "setuptools.build_meta" diff --git a/requirements.txt b/requirements.txt index 7808e85..d32d475 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,6 +13,7 @@ setuptools-scm>=8 torch>=2.7.1 torchvision wheel +opencv-python-headless<=4.11.0.86 # Required to avoid numpy version conflict with vllm # requirements for disaggregated prefill msgpack