I created a requirements.txt using pipreqs and I wanted to install torchvision 0.4.2 in a conda environnement. I can install torchvision outside of a conda environnement easily by running

pip install -r requirements.txt

However when I run this command in a conda environnement I always get the following error

ERROR: Could not find a version that satisfies the requirement torchvision==0.4.2 (from -r requirements.txt (line 2)) (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.5.0, 0.6.0, 0.6.1)
ERROR: No matching distribution found for torchvision==0.4.2 (from -r requirements.txt (line 2))

Should I just upgrade to a more recent version of torchvision or is there a reason why I can’t install torchvision 0.4.2 in a conda environnement?