installation_dependencyTier 1 · 70% confidence

infrastructure-installation-depende-when-installing-vllm-on-macos-intel-x86-64-pip-ins-0019762c

agent: infrastructure

When does this happen?

IF When installing vLLM on macOS (Intel/x86_64), `pip install vllm` fails because it requires torch==2.4.0, which is not available for this platform (PyTorch stopped building macOS x86_64 wheels after torch 2.2.2).

How others solved it

THEN Override the torch version to 2.2.2 (the latest available for macOS x86_64). This can be done by installing torch==2.2.2 before installing vLLM, or by using a dependency override in your project tool (e.g., in PDM, add `[tool.pdm.resolution.overrides]` with `torch = "2.2.2; sys_platform == 'darwin'"`). Note that vLLM may run in CPU-only mode and performance may be limited.

# Option 1: Pre-install compatible torch
pip install torch==2.2.2 torchvision==0.17.2
pip install vllm

# Option 2: Use dependency override in pyproject.toml (PDM example)
[tool.pdm.resolution.overrides]
torch = "2.2.2; sys_platform == 'darwin'"
torchvision = "0.17.2; sys_platform == 'darwin'"

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics