Python Forum
Installing From Pip Using -f
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing From Pip Using -f
#1
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)
Reply
#2
Here's the link to bbcode tags used on this forum BBCode
Reply
#3
(May-24-2023, 10:12 PM)Larz60+ Wrote: Here's the link to bbcode tags used on this forum BBCode

Thank you! Just updated.
Reply
#4
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.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020