Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with installing detectron2 #5162

Closed
xwcUP opened this issue Nov 27, 2023 · 8 comments
Closed

Problems with installing detectron2 #5162

xwcUP opened this issue Nov 27, 2023 · 8 comments
Labels
needs-more-info More info is needed to complete the issue

Comments

@xwcUP
Copy link

xwcUP commented Nov 27, 2023

When I execute the following code in the terminal

1
happening:
image

@github-actions github-actions bot added the needs-more-info More info is needed to complete the issue label Nov 27, 2023
Copy link

You've chosen to report an unexpected problem or bug. Unless you already know the root cause of it, please include details about it by filling the issue template.
The following information is missing: "Instructions To Reproduce the Issue and Full Logs"; "Your Environment";

@oktaysabak
Copy link

Same issue here:

❯ pip install 'git+https://github.com/facebookresearch/detectron2.git'
Collecting git+https://github.com/facebookresearch/detectron2.git
  Cloning https://github.com/facebookresearch/detectron2.git to /private/var/folders/22/sxp0ryq923s3qz4_fx4jxg_h0000gn/T/pip-req-build-4r3x2713
  Running command git clone --filter=blob:none --quiet https://github.com/facebookresearch/detectron2.git /private/var/folders/22/sxp0ryq923s3qz4_fx4jxg_h0000gn/T/pip-req-build-4r3x2713
  Resolved https://github.com/facebookresearch/detectron2.git to commit 017abbfa5f2c2a2afa045200c2af9ccf2fc6227f
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: -11
  ╰─> [0 lines of output]
      [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.

@gau-nernst
Copy link

I found the solution. Install the corresponding NVCC (CUDA compiler) and CUDA development libraries from conda

conda install "cuda-nvcc==11.8.*" "cuda-libraries-dev==11.8.*" -c nvidia

Make sure the version matches your PyTorch CUDA version.

Copy link

github-actions bot commented Dec 6, 2023

Requested information was not provided in 7 days, so we're closing this issue.

Please open new issue if information becomes available. Otherwise, use github discussions for free-form discussions.

@lenguyen2592004
Copy link

I found the solution. Install the corresponding NVCC (CUDA compiler) and CUDA development libraries from conda

conda install "cuda-nvcc==11.8.*" "cuda-libraries-dev==11.8.*" -c nvidia

Make sure the version matches your PyTorch CUDA version.

When I install it, I got this bug
image

@gau-nernst
Copy link

My solution was using conda, not pip

@lenguyen2592004
Copy link

My solution was using conda, not pip

I edited my command and it could installed nvidia but when I install the github link, I got this bug. What should I do?
image

@gau-nernst
Copy link

Downgrade your numpy, just like the errors say

pip install "numpy==1.24"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info More info is needed to complete the issue
Projects
None yet
Development

No branches or pull requests

4 participants