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

When Building wheel for detectron2 (setup.py), always fail #36

Open
XuanzheChen opened this issue Aug 10, 2023 · 2 comments
Open

When Building wheel for detectron2 (setup.py), always fail #36

XuanzheChen opened this issue Aug 10, 2023 · 2 comments

Comments

@XuanzheChen
Copy link

Hello.
I ran into some problems, when I did "pip install -e .[all]".The system always prompts me, "Building wheel for detectron2 (setup.py) ... error
error: subprocess-exited-with-error", and mentions "python setup.py bdist_wheel did not run successfully.", "No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA \v11.8\bin'".I always failed to build detectron2 and the system will report an error, as follows:
ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects
As a beginner, I'm stuck and can't figure out what to do with this.I need some help. I'd be very grateful if you could take the time to clear this up for me.

@geopavlakos
Copy link
Collaborator

I see you are working on a windows platform. You might want to take a look at issue #12, which has some debugging instructions from users that tried to install 4D Humans on windows.

@carlosedubarreto
Copy link

Hello @XuanzheChen ,

this link helped me a lot.
https://stackoverflow.com/a/72784255

If you like a rundown, I made this note that helps me to install detectron (usually the worst part of the process in windows, for me)

Instalando com versão pytorch 1.13 CUDA 11.7

conda install -c anaconda pywin32 -y
conda install -c anaconda cython -y
pip install git+https://github.com/facebookresearch/fvcore
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI

pip install av
conda install -c anaconda scipy -y
conda install -c anaconda ninja -y
pip install torch==1.13.0 torchvision==0.14.0 --index-url https://download.pytorch.org/whl/cu117
pip install git+https://github.com/facebookresearch/detectron2.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants