Ошибка установки tinycudann с помощью pip: не удалось создать устанавливаемые колеса для некоторых проектов на основе pyPython

Программы на Python
Ответить
Anonymous
 Ошибка установки tinycudann с помощью pip: не удалось создать устанавливаемые колеса для некоторых проектов на основе py

Сообщение Anonymous »

Я установил и пытаюсь запустить Neuralangelo, программу, доступную 2 года назад (страница github: https://github.com/NVlabs/neuralangelo).
Я используя conda и запуская Ubuntu 24.04.1 LTS с графическим процессором с поддержкой cuda и процессором AMD.
Все работает нормально, поскольку я следую инструкциям, приведенным на странице GitHub, пока я не попытаюсь установить tinycudann.
Я пробовал установить с помощью

Код: Выделить всё

pip install git+https://github.com/NVlabs/tiny-cuda-nn/#subdirectory=bindings/torch
(как указано на этой странице), но продолжает получать эту ошибку:

Код: Выделить всё

(neuralangelo) lld_fixe@TheSentry2:~/code/neuralangelo$ 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 /tmp/pip-req-build-nojia0ea
Running command git clone --filter=blob:none --quiet https://github.com/NVlabs/tiny-cuda-nn/ /tmp/pip-req-build-nojia0ea
Resolved https://github.com/NVlabs/tiny-cuda-nn/ to commit 0b8584041a6f655024c9f98bf1a24d020ce4c507
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
╰─> [65 lines of output]
/tmp/pip-req-build-nojia0ea/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 89 from PyTorch
Detected CUDA version 11.7
WARNING: Compute capabilities [89] are not all supported by the installed CUDA version 11.7.  Targeting [86] instead.
Targeting C++ standard 17
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-38/tinycudann
copying tinycudann/modules.py -> build/lib.linux-x86_64-cpython-38/tinycudann
copying tinycudann/__init__.py -> build/lib.linux-x86_64-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.linux-x86_64-cpython-38/tinycudann
running build_ext
Traceback (most recent call last):
File "", line 2, in 
File "
", line 34, in 
File "/tmp/pip-req-build-nojia0ea/bindings/torch/setup.py", line 227, in 
setup(
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/__init__.py", line 117, in setup
return distutils.core.setup(**attrs)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 183, in setup
return run_commands(dist)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
dist.run_commands()
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
self.run_command(cmd)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/command/bdist_wheel.py", line 410, in run
self.run_command("build")
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/dist.py", line 999, in run_command
super().run_command(command)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
cmd_obj.run()
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 98, in run
_build_ext.run(self)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
self.build_extensions()
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 499, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "/home/lld_fixe/python_stuff/miniconda3/envs/neuralangelo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 416, in _check_cuda_version
raise RuntimeError(
RuntimeError: The current installed version of g++ (13.3.0) is greater than the maximum required version by CUDA 11.7.  Please make sure to use an adequate version of g++ (>=6.0.0, 

Подробнее здесь: [url]https://stackoverflow.com/questions/79334177/error-installing-tinycudann-with-pip-failed-to-build-installable-wheels-for-som[/url]
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»