python setup.py develop did not run successfully.
When I am running the command: pip install -e . I meet the issue as below: And I'm using cuda12.1+pytorch2.1.2 Could you please help me to solve the problem. Thanks a lot!
(sugar) adv@adv-Super-Server:~/projects/SuGaR/gaussian_splatting/submodules/simple-knn$ pip install -e .
Obtaining file:///home/adv/projects/SuGaR/gaussian_splatting/submodules/simple-knn
Preparing metadata (setup.py) ... done
Installing collected packages: simple-knn
Running setup.py develop for simple-knn
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running develop
running egg_info
writing simple_knn.egg-info/PKG-INFO
writing dependency_links to simple_knn.egg-info/dependency_links.txt
writing top-level names to simple_knn.egg-info/top_level.txt
reading manifest file 'simple_knn.egg-info/SOURCES.txt'
writing manifest file 'simple_knn.egg-info/SOURCES.txt'
running build_ext
error: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
running develop
running egg_info
writing simple_knn.egg-info/PKG-INFO
writing dependency_links to simple_knn.egg-info/dependency_links.txt
writing top-level names to simple_knn.egg-info/top_level.txt
reading manifest file 'simple_knn.egg-info/SOURCES.txt'
writing manifest file 'simple_knn.egg-info/SOURCES.txt'
running build_ext
error: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
Hello @QY0911,
I understand the pain, installing packages is sometimes a nightmare!
It seems your problem is about installing simple-knn, as it is needed to run the original Gaussian Splatting code. Consequently, this problem is slightly more about vanilla Gaussian Splatting than SuGaR.
It may be due to your version of CUDA, as the original repo of Gaussian Splatting says:
Please note that this process assumes that you have CUDA SDK 11 installed, not 12.
Good news: It's possible to have several versions of CUDA on the same computer, so it should be OK for you! You should probably take a look at the github page of the original Gaussian Splatting implementation, as it provides a lot of information about installation. Specifically, there are issues that may be similar to yours, and the authors of the original paper are super nice, they answer a lot of questions and provide useful advice!
I met the same problem after installing and linking cuda 11.8
Oh I solved it by not adding a colon in the beginning of $CUDA_HOME! see this error
error: [Errno 2] No such file or directory: ':/usr/local/cuda`/bin/nvcc'
reset $CUDA_HOME from :/usr/local/cuda/bin/nvcc to /usr/local/cuda/bin/nvcc
When I am running the command: pip install -e . I meet the issue as below: And I'm using cuda12.1+pytorch2.1.2 Could you please help me to solve the problem. Thanks a lot!
(sugar) adv@adv-Super-Server:~/projects/SuGaR/gaussian_splatting/submodules/simple-knn$ pip install -e . Obtaining file:///home/adv/projects/SuGaR/gaussian_splatting/submodules/simple-knn Preparing metadata (setup.py) ... done Installing collected packages: simple-knn Running setup.py develop for simple-knn error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running develop running egg_info writing simple_knn.egg-info/PKG-INFO writing dependency_links to simple_knn.egg-info/dependency_links.txt writing top-level names to simple_knn.egg-info/top_level.txt reading manifest file 'simple_knn.egg-info/SOURCES.txt' writing manifest file 'simple_knn.egg-info/SOURCES.txt' running build_ext error: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × python setup.py develop did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running develop running egg_info writing simple_knn.egg-info/PKG-INFO writing dependency_links to simple_knn.egg-info/dependency_links.txt writing top-level names to simple_knn.egg-info/top_level.txt reading manifest file 'simple_knn.egg-info/SOURCES.txt' writing manifest file 'simple_knn.egg-info/SOURCES.txt' running build_ext error: [Errno 2] No such file or directory: ':/usr/local/cuda/bin/nvcc' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip.
解决了吗