Page 1 of 1

Installieren Sie PyTorch über die Datei „requirements.txt“.

Posted: 13 Jan 2025, 20:08
by Guest
In der Taschenlampendokumentation steht die Verwendung

Code: Select all

pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
um die neueste Version von PyTorch zu installieren. Das funktioniert, wenn ich es manuell mache, aber wenn ich es zu req.txt hinzufüge und pip install -r req.txt ausführe, schlägt es fehl und es wird FEHLER angezeigt: Keine passende Distribution.
Bearbeiten: Die gesamte Zeile aus req.txt und Fehler hier hinzufügen.

Code: Select all

torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.htmltorch==1.4.0+cpu

Code: Select all

ERROR: Could not find a version that satisfies the requirement torch==1.4.0+cpu (from -r requirements.txt (line 1)) (from versions: 0.1.2, 0.1.2.post1, 0.1.2.post2, 0.3.1, 0.4.0, 0.4.1, 1.0.0, 1.0.1, 1.0.1.post2, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.4.0)
ERROR: No matching distribution found for torch==1.4.0+cpu (from -r requirements.txt (line 1))