Open metalman123456123 opened 1 year ago
ip subprocess error: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] running bdist_wheel C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\diff_gaussian_rasterization copying diff_gaussian_rasterization__init.py -> build\lib.win-amd64-cpython-37\diff_gaussian_rasterization running build_ext C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization._C' extension creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release creating build\temp.win-amd64-cpython-37\Release\cuda_rasterizer "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc" -c cuda_rasterizer/backward.cu -o build\temp.win-amd64-cpython-37\Release\cuda_rasterizer/backward.obj -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman.conda\envs\gaussian_splatting\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\Include -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\Metalman\gaussian-splatting\submodules\diff-gaussian-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use-local-env C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(231): fatal error C1083: Cannot open include file: 'crtdefs.h': No such file or directory backward.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 2 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_ext C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'simple_knn._C' extension creating build creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman.conda\envs\gaussian_splatting\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\Include /EHsc /Tpext.cpp /Fobuild\temp.win-amd64-cpython-37\Release\ext.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /wd4624 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 ext.cpp C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include\torch/cuda.h(5): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe' failed with exit code 2 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for simple-knn error: subprocess-exited-with-error
× Running setup.py install for simple-knn did not run successfully. │ exit code: 1 ╰─> [28 lines of output] running install C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running build
running build_ext
C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem.
warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda))
building 'simple_knn._C' extension
creating build
creating build\temp.win-amd64-cpython-37
creating build\temp.win-amd64-cpython-37\Release
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman\.conda\envs\gaussian_splatting\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\Include /EHsc /Tpext.cpp /Fobuild\temp.win-amd64-cpython-37\Release\ext.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /wd4624 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0
ext.cpp
C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include\torch/cuda.h(5): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\cl.exe' failed with exit code 2
[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. ╰─> simple-knn
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. / failed
CondaEnvException: Pip failed
(base) C:\Users\Metalman\gaussian-splatting>
same here
ip subprocess error: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] running bdist_wheel C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\diff_gaussian_rasterization copying diff_gaussian_rasterizationinit.py -> build\lib.win-amd64-cpython-37\diff_gaussian_rasterization running build_ext C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization._C' extension creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release creating build\temp.win-amd64-cpython-37\Release\cuda_rasterizer "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc" -c cuda_rasterizer/backward.cu -o build\temp.win-amd64-cpython-37\Release\cuda_rasterizer/backward.obj -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman.conda\envs\gaussian_splatting\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\Include -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -IC:\Users\Metalman\gaussian-splatting\submodules\diff-gaussian-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use-local-env C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\crt/host_config.h(231): fatal error C1083: Cannot open include file: 'crtdefs.h': No such file or directory backward.cu error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 2 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_ext C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'simple_knn._C' extension creating build creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman.conda\envs\gaussian_splatting\include -IC:\Users\Metalman.conda\envs\gaussian_splatting\Include /EHsc /Tpext.cpp /Fobuild\temp.win-amd64-cpython-37\Release\ext.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /wd4624 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 ext.cpp C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include\torch/cuda.h(5): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe' failed with exit code 2 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for simple-knn error: subprocess-exited-with-error
× Running setup.py install for simple-knn did not run successfully. │ exit code: 1 ╰─> [28 lines of output] running install C:\Users\Metalman.conda\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running build running build_ext C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'simple_knn._C' extension creating build creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman\.conda\envs\gaussian_splatting\include -IC:\Users\Metalman\.conda\envs\gaussian_splatting\Include /EHsc /Tpext.cpp /Fobuild\temp.win-amd64-cpython-37\Release\ext.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /wd4624 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 ext.cpp C:\Users\Metalman\.conda\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include\torch/cuda.h(5): fatal error C1083: Cannot open include file: 'cstdint': No such file or directory error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\Hostx64\\x64\\cl.exe' failed with exit code 2 [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. ╰─> simple-knn
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure. / failed
CondaEnvException: Pip failed
(base) C:\Users\Metalman\gaussian-splatting>
i was able to fix it with the following
cd C:/gaussian-splatting conda activate gaussian_splatting
conda install -c anaconda vs2019_win-64
pip install submodules\diff-gaussian-rasterization pip install submodules\simple-knn
In windows 11 OS: Failed to build simple-knn
ERROR: Could not build wheels for simple-knn, which is required to install pyproject.toml-based projects
How can i solve this problem?
Failed to build diff-gaussian-rasterization simple-knn - same here :(
same to me!
solved with this: https://github.com/graphdeco-inria/gaussian-splatting/issues/146#issuecomment-1697780349
but visual studio 2022 env path here is on C:\Program Files\Microsoft Visual Studio.. (NOT x86)
i was able to fix it with the following
cd C:/gaussian-splatting conda activate gaussian_splatting
conda install -c anaconda vs2019_win-64
pip install submodules\diff-gaussian-rasterization pip install submodules\simple-knn
This worked for me after following #297 and still having issues installing the submodules.
EDIT: The above did not work after all, I was unable to use my GPU with that torch version.
Instead, I also solved with #146 (comment)
In windows 11 OS: Failed to build simple-knn
ERROR: Could not build wheels for simple-knn, which is required to install pyproject.toml-based projects
How can i solve this problem?
the same problem as yours in ubuntu, have you solve it?
Appreciate help with below error - TypeError: expected string or bytes-like object
` (gaussian_splatting) D:\dev\splat\gaussian-splatting>pip install submodules\diff-gaussian-rasterization Processing d:\dev\splat\gaussian-splatting\submodules\diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [54 lines of output]
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8'
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\diff_gaussian_rasterization
copying diff_gaussian_rasterization__init.py -> build\lib.win-amd64-cpython-37\diff_gaussian_rasterization
running build_ext
Traceback (most recent call last):
File "
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization Installing collected packages: diff-gaussian-rasterization Running setup.py install for diff-gaussian-rasterization ... error`
Thanks in advance!
For people struggling with bdist_wheel I found a thread that suggested using: pip install cmake and that has fixed it for me (I have now run straight into a different error which I'm still working on).
In windows 11 OS: Failed to build simple-knn ERROR: Could not build wheels for simple-knn, which is required to install pyproject.toml-based projects How can i solve this problem?
the same problem as yours in ubuntu, have you solve it?
I also encountered the same problem. Have you solved it?
I have solved this problem, just change the CUDA version, my operation is to convert CUDA12.3 to 11.6.
It is suspicious in the error message that NVCC of CUDA 11.8 is used, whereas the environment.yaml specifies cudatoolkit=11.6
So while conda installs most of CUDA 11.6, still the system CUDA's nvcc 11.8 is used for compilation, which results in such errors.
A possible solution is to conda install conda-forge::cudatoolkit-dev=11.6
instead of cudatoolkit
, because cudatoolkit-dev
also contains the nvcc compiler.
Another thing you could try is installing nvidia's version instead: conda install nvidia/label/cuda-11.6.2::cuda-toolkit
Also try installing the cuda tools in the environment in a first pass, and compile the dependent libraries in a second pass.
These are only tips, I have not verified whether this solves the issue.
It is suspicious in the error message that NVCC of CUDA 11.8 is used, whereas the environment.yaml specifies
cudatoolkit=11.6
So while conda installs most of CUDA 11.6, still the system CUDA's nvcc 11.8 is used for compilation, which results in such errors. A possible solution is toconda install conda-forge::cudatoolkit-dev=11.6
instead ofcudatoolkit
, becausecudatoolkit-dev
also contains the nvcc compiler. Another thing you could try is installing nvidia's version instead:conda install nvidia/label/cuda-11.6.2::cuda-toolkit
Also try installing the cuda tools in the environment in a first pass, and compile the dependent libraries in a second pass. These are only tips, I have not verified whether this solves the issue.
I use conda install conda-forge::cudatoolkit-dev=11.6
and the problem was solved. Thanks a lot!
I've tried this on two different computers. Im following this video
https://www.youtube.com/watch?v=UXtuigy_wYc&t=955s
I'm really stuck not sure what to do
(C:\Users\Metalman\anaconda3) C:\Users\Metalman>cd gaussian-splatting
(C:\Users\Metalman\anaconda3) C:\Users\Metalman\gaussian-splatting>SET DISTUTILS_USE_SDK=1
(C:\Users\Metalman\anaconda3) C:\Users\Metalman\gaussian-splatting>conda env create --file environment.yml Collecting package metadata (repodata.json): done Solving environment: done
Downloading and Extracting Packages msys2-conda-epoch-20 | 3 KB | ############################################################################ | 100% lcms2-2.14 | 988 KB | ############################################################################ | 100% pysocks-1.7.1 | 28 KB | ############################################################################ | 100% xorg-libxau-1.0.11 | 50 KB | ############################################################################ | 100% mkl-2022.1.0 | 182.7 MB | ################5 | 22% wheel-0.41.2 | 56 KB | ############################################################################ | 100% mkl-2022.1.0 | 182.7 MB | ################7 | 22% numpy-1.21.6 | 5.3 MB | ############################################################################ | 100% python-3.7.13 | 15.0 MB | ############################################################################ | 100% pytorch-mutex-1.0 | 3 KB | ############################################################################ | 100% openssl-1.1.1w | 5.0 MB | ############################################################################ | 100%
Preparing transaction: done Executing transaction: | "By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html"
done Installing pip dependencies: - Ran pip subprocess with arguments: ['C:\Users\Metalman\anaconda3\envs\gaussian_splatting\python.exe', '-m', 'pip', 'install', '-U', '-r', 'C:\Users\Metalman\gaussian-splatting\condaenv.m4hzkje8.requirements.txt', '--exists-action=b'] Pip subprocess output: Processing c:\users\metalman\gaussian-splatting\submodules\diff-gaussian-rasterization Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Processing c:\users\metalman\gaussian-splatting\submodules\simple-knn Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Building wheels for collected packages: diff-gaussian-rasterization, simple-knn Building wheel for diff-gaussian-rasterization (setup.py): started Building wheel for diff-gaussian-rasterization (setup.py): finished with status 'error' Running setup.py clean for diff-gaussian-rasterization Building wheel for simple-knn (setup.py): started Building wheel for simple-knn (setup.py): finished with status 'error' Running setup.py clean for simple-knn Failed to build diff-gaussian-rasterization simple-knn Installing collected packages: simple-knn, diff-gaussian-rasterization Running setup.py install for simple-knn: started Running setup.py install for simple-knn: finished with status 'error'
Pip subprocess error: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running bdist_wheel C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_py creating build creating build\lib.win-amd64-cpython-37 creating build\lib.win-amd64-cpython-37\diff_gaussian_rasterization copying diff_gaussian_rasterization__init.py -> build\lib.win-amd64-cpython-37\diff_gaussian_rasterization running build_ext C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'diff_gaussian_rasterization._C' extension creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release creating build\temp.win-amd64-cpython-37\Release\cuda_rasterizer "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc" -c cuda_rasterizer/backward.cu -o build\temp.win-amd64-cpython-37\Release\cuda_rasterizer/backward.obj -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\Include -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -D__CUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -IC:\Users\Metalman\gaussian-splatting\submodules\diff-gaussian-rasterization\third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --use-local-env nvcc fatal : Cannot find compiler 'cl.exe' in PATH error: command 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe' failed with exit code 1 [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for diff-gaussian-rasterization error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) running build running build_ext C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning: Error checking compiler version for cl: [WinError 2] The system cannot find the file specified warnings.warn(f'Error checking compiler version for {compiler}: {error}') C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:813: UserWarning: The detected CUDA version (11.8) has a minor version mismatch with the version that was used to compile PyTorch (11.6). Most likely this shouldn't be a problem. warnings.warn(CUDA_MISMATCH_WARN.format(cuda_str_version, torch.version.cuda)) building 'simple_knn._C' extension creating build creating build\temp.win-amd64-cpython-37 creating build\temp.win-amd64-cpython-37\Release cl.exe /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\TH -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\include -IC:\Users\Metalman\anaconda3\envs\gaussian_splatting\Include /EHsc /Tpext.cpp /Fobuild\temp.win-amd64-cpython-37\Release\ext.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /wd4624 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 error: command 'cl.exe' failed: None [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for simple-knn error: subprocess-exited-with-error
× Running setup.py install for simple-knn did not run successfully. │ exit code: 1 ╰─> [28 lines of output] running install C:\Users\Metalman\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
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. ╰─> simple-knn
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
failed
CondaEnvException: Pip failed
(C:\Users\Metalman\anaconda3) C:\Users\Metalman\gaussian-splatting>