Unverified Commit 8d3748d3 authored by Fasal Shah's avatar Fasal Shah Committed by GitHub
Browse files

[Doc] Fix macOS installation dependency resolution issue (#26721)


Signed-off-by: default avatarfaisal shah <fashah@redhat.com>
parent db56a599
...@@ -28,10 +28,15 @@ After installation of XCode and the Command Line Tools, which include Apple Clan ...@@ -28,10 +28,15 @@ After installation of XCode and the Command Line Tools, which include Apple Clan
```bash ```bash
git clone https://github.com/vllm-project/vllm.git git clone https://github.com/vllm-project/vllm.git
cd vllm cd vllm
uv pip install -r requirements/cpu.txt uv pip install -r requirements/cpu.txt --index-strategy unsafe-best-match
uv pip install -e . uv pip install -e .
``` ```
!!! tip
The `--index-strategy unsafe-best-match` flag is needed to resolve dependencies across multiple package indexes (PyTorch CPU index and PyPI). Without this flag, you may encounter `typing-extensions` version conflicts.
The term "unsafe" refers to the package resolution strategy, not security. By default, `uv` only searches the first index where a package is found to prevent dependency confusion attacks. This flag allows `uv` to search all configured indexes to find the best compatible versions. Since both PyTorch and PyPI are trusted package sources, using this strategy is safe and appropriate for vLLM installation.
!!! note !!! note
On macOS the `VLLM_TARGET_DEVICE` is automatically set to `cpu`, which is currently the only supported device. On macOS the `VLLM_TARGET_DEVICE` is automatically set to `cpu`, which is currently the only supported device.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment