无法使用 Pipenv 安装 Torch

发布于 2025-01-11 05:43:22 字数 1680 浏览 0 评论 0 原文

在无法使用 本教程进行操作>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! 

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 

image
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! 

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

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

发布评论

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

评论(1

绿光 2025-01-18 05:43:22

我解决了这个问题,我没有这些 GPU,所以我必须使用 第三个本教程的命令行

    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)...

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:

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