Can't install tinycudann
OS: windows 10.
Try to use nerfstudio, all dependecies has installed by this command: conda create --name nerfstudio -y python=3.8 conda activate nerfstudio python -m pip install --upgrade pip
pip uninstall torch torchvision functorch tinycudann
pip install torch==2.0.1+cu118 torchvision==0.15.2+cu118 --extra-index-url https://download.pytorch.org/whl/cu118 conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit
Problem here: pip install ninja git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch ERROR: Failed building wheel for tinycudann Running setup.py clean for tinycudann Failed to build tinycudann ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects
** try to git clone and install manually: **
pip install -v . Using pip 23.2.1 from C:\Users\StepanM\anaconda3\envs\nerfstudio\lib\site-packages\pip (python 3.8) Processing c:_net\tiny-cuda-nn\bindings\torch Running command python setup.py egg_info nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0 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 egg_info creating C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info writing C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\PKG-INFO writing dependency_links to C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\dependency_links.txt writing top-level names to C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\top_level.txt writing manifest file 'C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\SOURCES.txt' reading manifest file 'C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\SOURCES.txt' writing manifest file 'C:\Users\StepanM\AppData\Local\Temp\pip-pip-egg-info-f4u9pfws\tinycudann.egg-info\SOURCES.txt' C:_NET\tiny-cuda-nn\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 Preparing metadata (setup.py) ... done Building wheels for collected packages: tinycudann Running command python setup.py bdist_wheel C:_NET\tiny-cuda-nn\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 nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2022 NVIDIA Corporation Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022 Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0 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 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' copying tinycudann\bindings.cpp -> build\lib.win-amd64-cpython-38\tinycudann running build_ext error: [WinError 2] Не удается найти указанный файл error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. full command: 'C:\Users\StepanM\anaconda3\envs\nerfstudio\python.exe' -u -c ' exec(compile('"'"''"'"''"'"'
This is -- a caller that pip uses to run setup.py
- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = "
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\_NET\tiny-cuda-nn\bindings\torch\setup.py'"'"',), "
Building wheel for tinycudann (setup.py) ... error
ERROR: Failed building wheel for tinycudann
Running setup.py clean for tinycudann
Running command python setup.py clean
C:_NET\tiny-cuda-nn\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
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
Detected CUDA version 11.8
Targeting C++ standard 17
running clean
removing 'build\lib.win-amd64-cpython-38' (and everything under it)
'build\bdist.win-amd64' does not exist -- can't clean it
'build\scripts-3.8' does not exist -- can't clean it
removing 'build'
Failed to build tinycudann
ERROR: Could not build wheels for tinycudann, which is required to install pyproject.toml-based projects
Same issue :)
In case this aids anyone else in their kafkaesque journey to get this installed on their system: I just found: https://huggingface.co/camenduru/CoDeF/resolve/main/tinycudann-1.7-cp310-cp310-linux_x86_64.whl
It's the wrong python version but fuck it, maybe it will work. If it doesn't then I'm done with this anyway. Life's too short, man. Fuck this noise.
https://zhuanlan.zhihu.com/p/648043468
如果报错 ld: cannot find -lcuda: No such file or directory
export LIBRARY_PATH=/usr/local/cuda-11.7/lib64/stubs:$LIBRARY_PATH
不记得处理什么错误了,只记得处理了一个小问题
export QT_QPA_PLATFORM='offscreen'