Skip to content

Commit c83adbd

Browse files
22dimensionshwhaokun
authored andcommitted
[Installation] limit opencv-python-headless version to resolve numpy version conflict (vllm-project#3713)
### 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. ### How was this patch tested? tested by CI - vLLM version: v0.11.0rc3 - vLLM main: https://github.com/vllm-project/vllm/commit/v0.11.0 Signed-off-by: 22dimensions <[email protected]> Signed-off-by: hwhaokun <[email protected]>
1 parent 8e85db8 commit c83adbd

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
@@ -21,6 +21,7 @@ requires = [
2121
"msgpack",
2222
"quart",
2323
"numba",
24+
"opencv-python-headless<=4.11.0.86", # Required to avoid numpy version conflict with vllm
2425
]
2526
build-backend = "setuptools.build_meta"
2627

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ torch>=2.7.1
1515
torchvision
1616
wheel
1717
pandas-stubs
18+
opencv-python-headless<=4.11.0.86 # Required to avoid numpy version conflict with vllm
1819

1920
# requirements for disaggregated prefill
2021
msgpack

0 commit comments

Comments
 (0)