[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
afc58184ec

Signed-off-by: 22dimensions <waitingwind@foxmail.com>
Co-authored-by: 22dimensions <waitingwind@foxmail.com>
This commit is contained in:
Mengqing Cao
2025-10-25 18:18:28 +08:00
committed by GitHub
parent a58ff9e92f
commit 1b16c01afd
2 changed files with 2 additions and 0 deletions

View File

@@ -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"

View File

@@ -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