【发布时间】:2022-03-01 23:41:58
【问题描述】:
感谢此处的答案,我成功安装了 pytorch Poetry and PyTorch.
但是,我仍然无法通过诗歌安装 torchvision。
> poetry add torchvision==0.8.2
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing torchvision (0.8.2)
RuntimeError
Unable to find installation candidates for torchvision (0.8.2)
at ~\.poetry\lib\poetry\installation\chooser.py:72 in choose_for
68│
69│ links.append(link)
70│
71│ if not links:
→ 72│ raise RuntimeError(
73│ "Unable to find installation candidates for {}".format(package)
74│ )
75│
76│ # Get the best link
Failed to add packages, reverting the pyproject.toml file to its original content.
我用谷歌搜索了一些答案,上面写着“只是pip install torchvision”。
但我怀疑它是否有效,因为根据 PyPi(https://pypi.org/project/torchvision/#files),Windows 没有轮文件。我试了一下,果然失败了。
有什么方法可以在 windows 中安装与最新的 torch(1.7.1) 兼容的最新的 torchvisin 吗? + 通过诗歌?
【问题讨论】:
标签: python pytorch python-poetry