Skip to content

Incorrect PyTorch version (torch==2.6.0+cpu) in requirements.txt on macOS #21121

Closed
@nithin9000

Description

@nithin9000

The requirements.txt file specifies torch=2.6.0+cpu, Which does not exist in macOS. On Apple silicon and even intel Macs,PyTorch should be installed from the standard index or the Metal-optimized version instead.

This causes the following error when running pip install -r requirements.txt:

Image
"ERROR: Could not find a version that satisfies the requirement torch==2.6.0+cpu (from versions: 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.3.1, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0)
ERROR: No matching distribution found for torch==2.6.0+cpu"

Steps to reproduce:

  1. Clone the repository
  2. Create a venv
  3. pip install -r requirements.txt

Suggested Fix:
torch==2.6.0+cpu; sys_platform != "darwin" torch; sys_platform == "darwin"

System information:
OS:macOS 15.4
Architecture:Apple M3 Pro
Python version:3.12.6
pip version:25.0.1

Would love to hear thoughts from the maintainers on the best approach to fixing this! 😊

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions