tiny-cuda-nn
tiny-cuda-nn copied to clipboard
Can't install "tinycudann" - error: [WinError 2] The system cannot find the file specified
Describe the bug Getting the following error when trying to follow the instructions from nerfstudio the site.
Running this command:
pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Produce the following output:
(nerfstudio) E:\Projects\nerfstudio\firstproject>pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
Cloning https://github.com/NVlabs/tiny-cuda-nn/ to c:\users\asus ws 422\appdata\local\temp\pip-req-build-apl8newg
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ 'C:\Users\Asus ws 422\AppData\Local\Temp\pip-req-build-apl8newg'
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit b916a481d943a9a29d7aaa9519d7024395e98c1c
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
╰─> [27 lines of output]
Building PyTorch extension for tiny-cuda-nn version 1.7
Obtained compute capability 86 from PyTorch
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0
Detected CUDA version 11.3
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
Installing collected packages: tinycudann
Running setup.py install for tinycudann ... error
error: subprocess-exited-with-error
× Running setup.py install for tinycudann did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
Building PyTorch extension for tiny-cuda-nn version 1.7
Obtained compute capability 86 from PyTorch
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Mar_21_19:24:09_Pacific_Daylight_Time_2021
Cuda compilation tools, release 11.3, V11.3.58
Build cuda_11.3.r11.3/compiler.29745058_0
Detected CUDA version 11.3
running install
C:\Users\Asus ws 422\AppData\Roaming\Python\Python38\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
running 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
reading manifest file 'tinycudann.egg-info\SOURCES.txt'
writing manifest file 'tinycudann.egg-info\SOURCES.txt'
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: legacy-install-failure
× Encountered error while trying to install package.
╰─> tinycudann
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Any thought how to handle it?
My system Info: Windows 10 Visual Studio 2019 16.9.0 CUDA 13.0
Hi - same problem here. Happy to hear if you've figured it out!
export TCNN_CUDA_ARCHITECTURES=86 && \
pip install git+https://github.com/NVlabs/[email protected]/#subdirectory=bindings/torch
I was able to install using the above command. You could try it out.
When i move to CUDA12.1, Pytorch12.0, VS2022, it works
Ggs1mida
How did you install the package successfully? I am using cuda 12.1 and torch 2.1 in ubuntu 22.04 and got ERROR: Failed building wheel for tinycudann
Video card list of TCNN_CUDA_ARCHITECTURES:
https://docs.nerf.studio/quickstart/installation.html
Ggs1mida
How did you install the package successfully? I am using cuda 12.1 and torch 2.1 in ubuntu 22.04 and got ERROR: Failed building wheel for tinycudann
Hi, have you solved this problem? I'm using the same machine as yours.
Ggs1mida
How did you install the package successfully? I am using cuda 12.1 and torch 2.1 in ubuntu 22.04 and got ERROR: Failed building wheel for tinycudann
Hi, have you solved this problem? I'm using the same machine as yours.
I fix this problem on my machine. My environment is cuda 12.1, torch 2.1, g++ 11.4 in ubuntu 22.04.
First, my problem is some compile error, "error: cannot convert ‘const torch::enumtype::kFanIn’ to ‘int’
".
I fix this by change all "c++14
" to "c++17
" in setup.py. https://github.com/facebookresearch/pytorch3d/issues/1518#issuecomment-1659409227
Then I meet "compiler_compat/ld: cannot find -lcuda: No such file or directory". The libcuda.so
is under /usr/local/nvidia/lib64
on my machine. I fix it by adding extra_link_args=['-L/usr/local/nvidia/lib64']
in CUDAExtension. Maybe you can fix this by export LDFLAGS=-Lxxxx
too.
https://github.com/NVlabs/tiny-cuda-nn/issues/183#issuecomment-1690431647