Reputation: 416
I tried following this tutorial after not being able to lock with pipenv install torch
I am using Linux Mint 20.3 una
pipenv install --extra-index-url https://download.pytorch.org/whl/cu113/ "torch==1.10.1+cu113"
caused this problem after a long 'installing torch...' stage:
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
This also did not work.
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
Edit:
I have tried bu failed:
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!
Upvotes: 0
Views: 1753
Reputation: 416
I solved it, I don't have those GPUs so I have to use the third command line of the tutorial
pipenv install --extra-index-url https://download.pytorch.org/whl/ "torch==1.10.1+cpu"
Installing torch==1.10.1+cpu...
Adding torch to Pipfile's [packages]...
✔ Installation Succeeded
Pipfile.lock (6516c9) out of date, updating to (3c44bd)...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (3c44bd)!
Installing dependencies from Pipfile.lock (3c44bd)...
🐍 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/0 — 00:
Upvotes: 1