在无法锁定后,我尝试按照本教程pipenv install torch
进行操作,我使用的是 Linux Mint 20.3 una
pipenv install --extra-index-url https://download.pytorch.org/whl/cu113/ "torch==1.10.1+cu113"
经过长时间的“安装手电筒...”阶段后导致此问题:
Error: An error occurred while installing torch==1.10.1+cu113!
Error text: Looking in indexes: https://download.pytorch.org/whl/cu113/, https://pypi.org/simple
Collecting torch==1.10.1+cu113
Downloading https://download.pytorch.org/whl/cu113/torch-1.10.1%2Bcu113-cp39-cp39-linux_x86_64.whl (1821.5 MB)
✘ Installation Failed
这也没有奏效。
Installing torch==1.10.2+cu113...
Error: An error occurred while installing torch==1.10.2+cu113!
Error text:
ERROR: Could not find a version that satisfies the requirement torch==1.10.2+cu113 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2)
ERROR: No matching distribution found for torch==1.10.2+cu113
编辑:
我尝试过失败:
pipenv install --extra-index-url https://download.pytorch.org/whl/ "torch==1.10.1+cu102"
Installing torch==1.10.1+cu102...
Adding torch to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (6516c9) out of date, updating to (2de599)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!