Exploring
Exploring

Reputation: 3479

No matching distribution found for torch==1.9.0+cu111

I am trying to install Codegen in my machine.

At the time of installing using virtualenv, I am getting the following error:

pip3 install -r requirements.txt
Looking in links: https://download.pytorch.org/whl/torch_stable.html
ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0)
ERROR: No matching distribution found for torch==1.9.0+cu111

I have also tried to install the libraries using conda. With conda, I am getting the following error:

CondaValueError: could not parse '--find-links https://download.pytorch.org/whl/torch_stable.html' in: requirements.txt
> cat requirements.txt
--find-links https://download.pytorch.org/whl/torch_stable.html
torch==1.9.0+cu111
transformers==4.16.2%

Upvotes: 2

Views: 1883

Answers (1)

zz Qiu
zz Qiu

Reputation: 11

I met this problem when I install a wheel.

I solved it by changing the .whl file

In xxxx.whl/xxxxx.dist-info/METADATA

Requires-Dist: torch (==1.9.1+cu111)
Requires-Dist: torchvision (==0.10.1+cu111)

delete '+cu111':

Requires-Dist: torch (==1.9.1)
Requires-Dist: torchvision (==0.10.1)

Upvotes: 1

Related Questions