Skip to content

Specifying macOS platform breaks pip install #12487

@itymchyshyn-sc

Description

@itymchyshyn-sc

Summary

When --python-platform macos is specified for uv pip install or uv pip compile, uv tries to install package build for macOS 12 even if it is not available and there is a build for macOS 15. This applies to both installation from PyPI and from a local wheel file.

Minimal example:

pip download numpy  # for me it downloaded numpy-2.2.4-cp310-cp310-macosx_14_0_arm64.whl
uv pip install --python-platform macos numpy-2.2.4-cp310-cp310-macosx_14_0_arm64.whl  # error
uv pip install numpy-2.2.4-cp310-cp310-macosx_14_0_arm64.whl  # no error

Platform

macOS 15 arm64

Version

uv 0.6.9 (3d94602 2025-03-20)

Python version

Python 3.10.14

Metadata

Metadata

Assignees

Labels

questionAsking for clarification or support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions