Cannot install torch 1.7.0 on WSL2/Debian

Hi all!

I’m using WSL2 Debian distro to install and compile (not run) a software which requires torch 1.7.0. Python is v3.9.2, there’s no GPU. Unfortunately I’m unable to install the lib.

Here’s what I’ve tried so far:

  • python3 -m pip install torch==1.7.0 -f https://download.pytorch.org/whl/torch_stable.html → ERROR: No matching distribution found for torch==1.7.0
  • pip3 install https://download.pytorch.org/whl/cpu/torch-1.7.0%2Bcpu-cp38-cp38-linux_x86_64.whl → ERROR: torch-1.7.0+cpu-cp38-cp38-linux_x86_64.whl is not a supported wheel on this platform.
  • pip install torch==1.7.0+cpu torchvision==0.8.0+cpu torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html → ERROR: No matching distribution found for torch==1.7.0+cpu

I’m a bit lost: can anyone point me to the proper command?
Reminder: I just want to install and compile the app, then copy it to a Nvidia Jetson Nano target to check whether it runs or not…

Thanks in advance for any help!

---- Environment
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Debian GNU/Linux 11 (bullseye) (x86_64)
GCC version: (Debian 10.2.1-6) 10.2.1 20210110
Clang version: Could not collect
CMake version: version 3.18.4
Libc version: glibc-2.31

Python version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] (64-bit runtime)
Python platform: Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.31
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] numpy==1.22.4
[conda] Could not collect