0

当我有以下行时requirements.txt

detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/index.html

我收到一个错误:

ERROR: Could not find a version that satisfies the requirement detectron2 (from versions: none)
ERROR: No matching distribution found for detectron2

但是尝试在命令行上执行此操作,它会安装软件包,但我真的希望所有内容都在 requirements.txt

即使 requirements.txt 没有任何其他条目也会发生这种情况。

pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/index.html

知道有什么问题吗?requirements.txt 中是否列出了导致此问题的其他要求?我怎么知道是哪一个?

这是基于 Docker 容器的python:3.7-slim-buster,如果我没记错的话,它是基于 Debian buster 的。它正在运行 Python 3.7.11。

我在 virtualenv 和没有它的情况下都试过这个。

requirements.txt 中的其他软件包已正确安装。

4

0 回答 0