没有针对火炬找到匹配分布== 1.9.0+ cu111

发布于 2025-02-10 04:34:07 字数 947 浏览 2 评论 0原文

我正在尝试在我的计算机中安装 codegen 在我的计算机中。

在使用virtualenv安装时,我会收到以下错误:

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

我还尝试使用conda安装库。使用conda,我会收到以下错误:

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%

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%

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

念三年u 2025-02-17 04:34:07

安装轮子时,我遇到了这个问题。

.whl文件解决了它

我通过更改xxxx.whl/xxxxx.dist-info/metadata delete'+cu111'中的

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

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

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)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文