Install tiny-cuda-nn failed
pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch Cloning https://github.com/NVlabs/tiny-cuda-nn/ to c:\users\hm\appdata\local\temp\pip-req-build-2u1e_ok0 Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ 'C:\Users\HM\AppData\Local\Temp\pip-req-build-2u1e_ok0' Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit c91138bcd4c6877c8d5e60e483c0581aafc70cce Running command git submodule update --init --recursive -q Preparing metadata (setup.py) ... done Building wheels for collected packages: tinycudann Building wheel for tinycudann (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [25 lines of output] C:\Users\HM\AppData\Local\Temp\pip-req-build-2u1e_ok0\bindings/torch\setup.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html from pkg_resources import parse_version Building PyTorch extension for tiny-cuda-nn version 1.7 Obtained compute capability 86 from PyTorch Detected CUDA version 11.8 Targeting C++ standard 17 running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-38 creating build\lib.win-amd64-cpython-38\tinycudann copying tinycudann\modules.py -> build\lib.win-amd64-cpython-38\tinycudann copying tinycudann_init_.py -> build\lib.win-amd64-cpython-38\tinycudann running egg_info creating tinycudann.egg-info writing tinycudann.egg-info\PKG-INFO writing dependency_links to tinycudann.egg-info\dependency_links.txt writing top-level names to tinycudann.egg-info\top_level.txt writing manifest file 'tinycudann.egg-info\SOURCES.txt' reading manifest file 'tinycudann.egg-info\SOURCES.txt' writing manifest file 'tinycudann.egg-info\SOURCES.txt' copying tinycudann\bindings.cpp -> build\lib.win-amd64-cpython-38\tinycudann running build_ext error: [WinError 2] The system cannot find the file specified [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for tinycudann Running setup.py clean for tinycudann Failed to build tinycudann ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (tinycudann)
Unfortunately, I got the exact output too, can you please come back if you solved the issue
Unfortunately, I got the exact output too, can you please come back if you solved the issue
It hasn't been resolved, but I switched to Ubuntu 22.04 using Docker, and at least it worked.
From my side, it worked on 22.04 and failed on 24.04
Check https://stackoverflow.com/questions/76043689/pkg-resources-is-deprecated-as-an-api For me, it solved the issue (running Ubuntu 22.04 using Docker) :
pip uninstall setuptools pip install setuptools==66.1.1
I had a longer error message that said
unsupported GNU version! gcc versions later than 11 are not supported!
I then chose to have the default (in my case gcc 13) and gcc-11 in parallel. So I can switch on the fly if need arises.
Install gcc-11:
sudo apt -y install g++-11
Add them both as alternatives (shamelessly copied from here )
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 70 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 80 --slave /usr/bin/g++ g++ /usr/bin/g++-13 --slave /usr/bin/gcov gcov /usr/bin/gcov-13
Then choose gcc-11 in the menu:
sudo update-alternatives --config gcc
Check afterwards with
gcc --version
that gcc-11 is indeed used by default.
After that everything was fine:
[...]
Successfully built tinycudann
Installing collected packages: tinycudann, ninja
Successfully installed ninja-1.11.1.3 tinycudann-1.7
bump as a solution.