Domestic downloadingtorch
is very slow, so we can go to the official website to download manuallywhl
first. You can use a multi-threaded downloader when downloading IDM
Download, this greatly improves the download speed, basically it can be downloaded in a few minutes, and then you can use the pip install
command to installwhl
Installation package.
The download address is posted heretorch
.
https://download.pytorch.org/whl/torch/
It should be noted here that the downloadedtorch
version must conform to your local environment. For example, here is thepython
version a>3.9
, cuda
version is 11.8
, and it is Windows
system, then you can go to the above website Search to find the version that matches your machine.
More questions visithere.