Fix error: subprocess-exited-with-error

I’m encountering an issue while running the notebook automated-dataset-annotation-and-evaluation-with-grounding-dino-and-sam.ipynb on Google Colab (GPU, Python 3 environment).
When trying to install the required packages, I receive the following error:
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

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

Here are some additional details about my setup:

  • Project Type: Object Detection (Weed Detection in Sugarcane)
  • Operating System & Browser: Google Colab/Windows

I have attached a screenshot of the full error below:

I’ve tried restarting the runtime and reinstalling the packages, but the issue persists.
It seems related to dependency conflicts between torch, torchaudio, and other packages.

Has anyone encountered a similar issue or is there a recommended way to fix this when setting up the notebook on Colab?

Thanks a lot for your support! :folded_hands: