Skip to content

uv pip compile --universal is not universal enough for an x86 mac #7557

@zhou13

Description

@zhou13

It seems that uv pip compile --universal does not support x86 macos directly. On my intel mac,

echo torch > requirements.in
uv pip compile --universal requirements.in -o requirement.txt
uv pip install -r requirement.txt

You will get

× No solution found when resolving dependencies:
  ╰─▶ Because torch==2.4.1 has no wheels with a matching Python implementation tag and you require torch==2.4.1, we can
      conclude that your requirements are unsatisfiable.

Things work normally when you remove the --universal flag, in which uv will install torch==2.2.2, which still supports x86 macos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsquestionAsking for clarification or support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions