[Python] how can i download pytorch manually?

Discussão em 'Python' iniciado por Stack, Março 11, 2025.

  1. Stack

    Stack Membro Participativo

    hello im trying to use some python programs that need pytorch and when trying to install it using the command

    pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118


    this is the error i get

    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000183D80F60B0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /whl/cu118/torch/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000183D80F63E0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /whl/cu118/torch/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000183D80F6590>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /whl/cu118/torch/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000183D80F6740>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /whl/cu118/torch/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x00000183D80F68F0>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed')': /whl/cu118/torch/
    ERROR: Could not find a version that satisfies the requirement torch (from versions: none) ERROR: No matching distribution found for torch WARNING: There was an error checking the latest version of pip.


    i can somewhat solve the problem by using a vpn but the problem is pytorch is a very large package and it keeps getting interrupted and i have to start from the beginning again and again so i need a way to download the package manually with download managers that support download resuming and was wondering how it can be done as i am a noob when it comes to python thank you.

    Continue reading...

Compartilhe esta Página