[Python] pip does not find new version of torch

Discussão em 'Python' iniciado por Stack, Junho 4, 2025.

  1. Stack

    Stack Membro Participativo

    I have a Mac M1 laptop, where I have conda env with python=3.9.21, and pip=25.1.1.

    Currently I have torch=2.2.0 and I wanted to update it to the latest version, but when I tried pip install -U torch it shows that I have the latest version, and trying pip install -U torch==2.7.0 ends in:

    ERROR: Could not find a version that satisfies the requirement torch==2.7.0 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2)
    ERROR: No matching distribution found for torch==2.7.0


    I also downloaded the corresponding whl file and tried to install that, but got:

    pip install ~/Downloads/torch-2.7.1-cp39-none-macosx_11_0_arm64.whl
    ERROR: torch-2.7.1-cp39-none-macosx_11_0_arm64.whl is not a supported wheel on this platform.


    Not sure what is going on.

    Continue reading...

Compartilhe esta Página