'Install a specific Torch version

I am trying to install an specfic old version of torch

I took this snippet from here

conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cpuonly -c pytorch

When I do

import torch

I get this error

ModuleNotFoundError: No module named 'torch'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source