Issue installing requirements.txt file

For reference, this is a Python based container. Docker version 23.0.3

This is my requirements file:

torch~=2.0.0
torchvision==0.10.0+cu102 -f https://download.pytorch.org/whl/cu102/torch_stable.html
transformers~=4.28.1
tqdm~=4.65.0
datasets~=2.11.0
accelerate~=0.18.0
numpy~=1.24.2

After adding I run ‘pip install -r requirements.txt’, however I keep getting this error.

#0 56.46 ERROR: Could not find a version that satisfies the requirement torchvision==0.10.0+cu102 (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.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2)
#0 56.46 ERROR: No matching distribution found for torchvision==0.10.0+cu102

It won’t install the specific torchvision version I need. I have tried changing the ‘==’ to a ‘~=’, and many other things to get this to work. Docker won’t install any versions besides what is shown in the error message.

Any help would be greatly appreciated.