Skip to content

Commit 1b16c01

Browse files
[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 afc5818 Signed-off-by: 22dimensions <[email protected]> Co-authored-by: 22dimensions <[email protected]>
1 parent a58ff9e commit 1b16c01

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ requires = [
1919
"msgpack",
2020
"quart",
2121
"numba",
22+
"opencv-python-headless<=4.11.0.86", # Required to avoid numpy version conflict with vllm
2223
]
2324
build-backend = "setuptools.build_meta"
2425

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ setuptools-scm>=8
1313
torch>=2.7.1
1414
torchvision
1515
wheel
16+
opencv-python-headless<=4.11.0.86 # Required to avoid numpy version conflict with vllm
1617

1718
# requirements for disaggregated prefill
1819
msgpack

0 commit comments

Comments
 (0)