ERROR: Failed building wheel for detectron2

username: june_goo
cooked: <p>Hi,<br>
I am trying to install the requirements from the github, and intall_requirements.sh file looks like below.<br>
I am currently have a NVIDIA-SMI 530.56                 Driver Version: 532.09       CUDA Version: 12.1.<br>
<img src="https://discuss.pytorch.org/uploads/default/original/3X/b/5/b5d6b1522ff1b857f8e304fc7c5d131007b0713b.png" alt="image" data-base62-sha1="pWCoJXTsNymA03MhN3fdPypTTLB" width="636" height="207"></p>
<p>I faced an error of</p>
<p>note: This error originates from a subprocess, and is likely not a problem with pip.<br>
ERROR: Failed building wheel for detectron2<br>
Running setup.py clean for detectron2<br>
Failed to build detectron2<br>
ERROR: Could not build wheels for detectron2, which is required to install pyproject.toml-based projects</p>
<h4><a name="requirements-to-install-1" class="anchor" href="#requirements-to-install-1"></a>Requirements to install</h4>
<p>set -e</p>
<h1><a name="openmask3d-installation-2" class="anchor" href="#openmask3d-installation-2"></a>OpenMask3D Installation</h1>
<h1><a name="if-you-encounter-any-problem-with-the-detectron2-or-minkowskiengine-installations-3" class="anchor" href="#if-you-encounter-any-problem-with-the-detectron2-or-minkowskiengine-installations-3"></a>- If you encounter any problem with the Detectron2 or MinkowskiEngine installations,</h1>
<h1><a name="it-might-be-because-you-dont-have-properly-set-up-gcc-g-pybind11-openblas-installations-4" class="anchor" href="#it-might-be-because-you-dont-have-properly-set-up-gcc-g-pybind11-openblas-installations-4"></a>it might be because you don’t have properly set up gcc, g++, pybind11, openblas installations.</h1>
<h1><a name="first-make-sure-you-have-those-are-installed-properly-5" class="anchor" href="#first-make-sure-you-have-those-are-installed-properly-5"></a>First, make sure you have those are installed properly.</h1>
<h1><a name="more-details-about-installing-on-different-platforms-can-be-found-in-the-github-repositories-of-6" class="anchor" href="#more-details-about-installing-on-different-platforms-can-be-found-in-the-github-repositories-of-6"></a>- More details about installing on different platforms can be found in the GitHub repositories of</h1>
<h1><a name="detectron2httpsgithubcomfacebookresearchdetectron2-and-minkowskiengine-httpsgithubcomnvidiaminkowskiengine-7" class="anchor" href="#detectron2httpsgithubcomfacebookresearchdetectron2-and-minkowskiengine-httpsgithubcomnvidiaminkowskiengine-7"></a>Detectron2(<a href="https://github.com/facebookresearch/detectron2" class="inline-onebox" rel="noopener nofollow ugc">GitHub - facebookresearch/detectron2: Detectron2 is a platform for object detection, segmentation and other visual recognition tasks.</a>) and MinkowskiEngine (<a href="https://github.com/NVIDIA/MinkowskiEngine" class="inline-onebox" rel="noopener nofollow ugc">GitHub - NVIDIA/MinkowskiEngine: Minkowski Engine is an auto-diff neural network library for high-dimensional sparse tensors</a>).</h1>
<h1><a name="if-you-encounter-any-other-problems-take-a-look-at-the-installation-guidelines-in-httpsgithubcomjonasschultmask3d-which-might-be-helpful-as-our-mask-module-relies-on-mask3d-8" class="anchor" href="#if-you-encounter-any-other-problems-take-a-look-at-the-installation-guidelines-in-httpsgithubcomjonasschultmask3d-which-might-be-helpful-as-our-mask-module-relies-on-mask3d-8"></a>- If you encounter any other problems, take a look at the installation guidelines in <a href="https://github.com/JonasSchult/Mask3D" class="inline-onebox" rel="noopener nofollow ugc">GitHub - JonasSchult/Mask3D: Mask3D predicts accurate 3D semantic instances achieving state-of-the-art on ScanNet, ScanNet200, S3DIS and STPLS3D.</a>, which might be helpful as our mask module relies on Mask3D.</h1>
<h1><a name="note-the-following-commands-were-tested-on-ubuntu-1804-and-2004-with-cuda-111-and-114-9" class="anchor" href="#note-the-following-commands-were-tested-on-ubuntu-1804-and-2004-with-cuda-111-and-114-9"></a>Note: The following commands were tested on Ubuntu 18.04 and 20.04, with CUDA 11.1 and 11.4.</h1>
<p>pip install torch==1.12.1 torchvision==0.13.1 -f <a href="https://download.pytorch.org/whl/cu113/torch_stable.html" rel="noopener nofollow ugc">https://download.pytorch.org/whl/cu113/torch_stable.html</a><br>
pip install ninja==1.10.2.3<br>
pip install pytorch-lightning==1.7.2 fire==0.5.0 imageio==2.23.0 tqdm==4.64.1 wandb==0.13.2<br>
pip install python-dotenv==0.21.0 pyviz3d==0.2.32 scipy==1.9.3 plyfile==0.7.4 scikit-learn==1.2.0 trimesh==3.17.1 loguru==0.6.0 albumentations==1.3.0 volumentations==0.1.8<br>
pip install antlr4-python3-runtime==4.8 black==21.4b2 omegaconf==2.0.6 hydra-core==1.0.5 --no-deps</p>
<p>pip install ‘git+https://github.com/facebookresearch/detectron2.git@710e7795d0eeadf9def0e7ef957eea13532e34cf’ --no-deps</p>
<p>conda install -y openblas-devel -c anaconda<br>
pip install -U git+https://github.com/NVIDIA/MinkowskiEngine -v --no-deps --config-settings=“–blas_include_dirs=${CONDA_PREFIX}/include” --config-settings=“–blas=openblas”</p>
<p>pip install pynvml==11.4.1 gpustat==1.0.0 tabulate==0.9.0 pytest==7.2.0 tensorboardx==2.5.1 yapf==0.32.0 termcolor==2.1.1 addict==2.4.0 blessed==1.19.1<br>
pip install gorilla-core==0.2.7.8<br>
pip install matplotlib==3.7.2<br>
pip install cython</p>
<p>pip install pycocotools==2.0.6<br>
pip install h5py==3.7.0<br>
pip install transforms3d==0.4.1<br>
pip install open3d==0.16.0<br>
pip install torch-scatter -f <a href="https://data.pyg.org/whl/torch-1.12.1+cu113.html" rel="noopener nofollow ugc">https://data.pyg.org/whl/torch-1.12.1+cu113.html</a><br>
pip install torchmetrics==0.11.0<br>
pip install setuptools==68.0.0</p>
<p>pip install fvcore==0.1.5.post20221221<br>
pip install cloudpickle==2.1.0<br>
pip install Pillow==9.3.0</p>
<p>cd openmask3d/class_agnostic_mask_computation/third_party/pointnet2 &amp;&amp; pip install .</p>
<p>pip install git+https://github.com/openai/CLIP.git@a9b1bf5920416aaeaec965c25dd9e8f98c864f16 --no-deps<br>
pip install  git+https://github.com/facebookresearch/segment-anything.git@6fdee8f2727f4506cfbbe553e23b895e27956588 --no-deps<br>
pip install ftfy==6.1.1<br>
pip install regex==2023.10.3</p>

username: ptrblck
cooked: <pre><code class="lang-auto"># If you encounter any problem with the Detectron2 or MinkowskiEngine installations,

# it might be because you don’t have properly set up gcc, g++, pybind11, openblas installations.

# First, make sure you have those are installed properly.
</code></pre>
<p>Did you try this suggestion from the error message and made sure these packages are installed?</p>