Problem with pytorch and cuda installation

I tried to install pytorch with cuda enabled using the following command in conda prompt: conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia.
but I got the following error: (‘Connection broken: IncompleteRead(217545068 bytes read, 176616422 more expected)’, IncompleteRead(217545068 bytes read, 176616422 more expected)).

I am not sure what this means to me. Could anyone please explain why this is happening?

It seems your internet connection might have issues so you might want to retry the download.

I tried this and not working. Is the same error when I run the install command

Works for me:

conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
...
The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
...
   pytorch-2.5.1              |py3.10_cuda11.8_cudnn9.1.0_0        1.54 GB  pytorch
    pytorch-cuda-11.8          |       h7e8668a_6           7 KB  pytorch
    pytorch-mutex-1.0          |             cuda           3 KB  pytorch
    pyyaml-6.0.2               |  py310h5eee18b_0         193 KB
    requests-2.32.3            |  py310h06a4308_1         101 KB
    sympy-1.13.3               |  py310h06a4308_0        11.3 MB
    torchaudio-2.5.1           |      py310_cu118         6.2 MB  pytorch
    torchtriton-3.1.0          |            py310       233.5 MB  pytorch
    torchvision-0.20.1         |      py310_cu118         8.3 MB  pytorch
...
python -c "import torch; print(torch.__version__); print(torch.version.cuda); print(torch.randn(1).cuda())"                                                                                                                              
2.5.1                                                                                                                                                                                                                                                                             
11.8                                                                                                                                                                                                                                                                              
tensor([-1.2686], device='cuda:0')