Skip to content

torch not installed as dependencies when installing groundingdino #170

@XkunW

Description

@XkunW

The following error occurs if torch was not installed in the environment prior to the installation of groundingdino
`Collecting git+https://github.com/IDEA-Research/GroundingDINO.git
Cloning https://github.com/IDEA-Research/GroundingDINO.git to /tmp/pip-req-build-cqbznast
Running command git clone --filter=blob:none --quiet https://github.com/IDEA-Research/GroundingDINO.git /tmp/pip-req-build-cqbznast
Resolved https://github.com/IDEA-Research/GroundingDINO.git to commit 6c27bc7
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-req-build-cqbznast/setup.py", line 27, in
import torch
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions