4D-Humans icon indicating copy to clipboard operation
4D-Humans copied to clipboard

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

Open XuanzheChen opened this issue 1 year ago • 2 comments

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.

XuanzheChen avatar Aug 10 '23 08:08 XuanzheChen

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.

geopavlakos avatar Aug 11 '23 06:08 geopavlakos

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

carlosedubarreto avatar Aug 12 '23 19:08 carlosedubarreto