【问题标题】:Installing detectron2 in Heroku在 Heroku 中安装detectron2
【发布时间】:2021-08-08 10:17:19
【问题描述】:

RROR:找不到满足要求的版本detectron2>=0.4(来自-r /tmp/build_345e2e66/requirements.txt(第5行))(来自版本:无)

   ERROR: No matching distribution found for detectron2>=0.4 (from -r /tmp/build_345e2e66/requirements.txt (line 5))

【问题讨论】:

    标签: python torch


    【解决方案1】:

    不要使用 pip freeze,它不起作用 只需将这些添加到您的 req.txt 中

    1. -fhttps://dl.fbaipublicfiles.com/detectron2/wheels/cpu/torch1.8/index.html
    2. detectron2

    然后它将成功安装您的检测器

    【讨论】:

      【解决方案2】:

      这似乎只适用于 Linux。让它在 Mac 上运行:

      git clone https://github.com/facebookresearch/detectron2.git
      

      然后添加

      -e 检测器2

      到你的 requirements.txt

      来源:https://detectron2.readthedocs.io/en/latest/tutorials/install.html

      【讨论】:

        猜你喜欢
        • 2020-06-23
        • 1970-01-01
        • 2020-06-14
        • 2020-12-26
        • 2018-10-20
        • 1970-01-01
        • 2015-07-12
        • 2015-11-05
        • 2019-03-20
        相关资源
        最近更新 更多