[error] ERROR: file:///content does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

2024. 8. 15. 18:58개인활동/기타

Grounding DINO를 코랩에 설치하던 중

ERROR: file:///content does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

 

이렇게 생긴 에러를 마주하게 되었다.

그래서 해결법을 찾던 중 스택오버플로우를 통해 알게된 사실

!git clone https://github.com/IDEA-Research/GroundingDINO.git
%cd GroundingDINO
!pip install -e .

 

경로 설정 과정에서 !cd GroundingDINO/ 로 되어있던 것을 %cd GroundingDINO로 수정해주니 에러가 나지 않고 패키지가 잘 설치되었다.

 

코랩에서는 !cd는 경로가 제대로 설정되지 않아 %cd를 사용해야 한다고 한다.

 

지식 하나 습득~

 


https://stackoverflow.com/questions/76166531/error-file-content-does-not-appear-to-be-a-python-project-neither-setup-py

 

ERROR: file:///content does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found

https://colab.research.google.com/drive/11u6leEKvqE0CCbvDHHKmCxmW5GxyjlBm?usp=sharing setup.py file is in transformers folder(root directory). But this error occurs when I run !git clone https://gi...

stackoverflow.com