Python Forum

Full Version: Installing From Pip Using -f
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,


I am trying to install a requirements.txt file. This is what it consists of.
Output:
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
This is the error code I get. Why am I getting this if I put the proper link in the -f flag, and I know its a available. I have tried everything and I am lost.

Error:
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)
Here's the link to bbcode tags used on this forum BBCode
(May-24-2023, 10:12 PM)Larz60+ Wrote: [ -> ]Here's the link to bbcode tags used on this forum BBCode

Thank you! Just updated.
Tip:
you can save the current versions of all installed packages with this command (from command line) pip freeze > requirements.txt
Then, if you need different versions, edit and update the requirements.txt file.