Install PyTorch from requirements.txt
问题 Torch documentation says use pip install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html to install the latest version of PyTorch. This works when I do it manually but when I add it to req.txt and do pip install -r req.txt , it fails and says ERROR: No matching distribution . Edit: adding the whole line from req.txt and error here. torch==1.4.0+cpu -f https://download.pytorch.org/whl/torch_stable.html torchvision==0.5.0+cpu -f https://download