-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Comments
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. |
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. |
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. |
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. |
My solution was using conda, not pip |
Downgrade your numpy, just like the errors say
|
When I execute the following code in the terminal
happening:
The text was updated successfully, but these errors were encountered: