graphdeco-inria / gaussian-splatting

Original reference implementation of "3D Gaussian Splatting for Real-Time Radiance Field Rendering"
https://repo-sam.inria.fr/fungraph/3d-gaussian-splatting/
Other
14.77k stars 1.93k forks source link

Pip Dependencies fail to install #1026

Open JavanMa2024 opened 1 month ago

JavanMa2024 commented 1 month ago

(base) C:\Users\A>cd gaussian-splatting

(base) C:\Users\A\gaussian-splatting>conda env create --file environment.yml C:\ProgramData\anaconda3\Lib\argparse.py:2006: FutureWarning: remote_definition is deprecated and will be removed in 25.9. Use conda env create --file=URL instead. action(self, namespace, argument_values, option_string) Channels:

PackagesNotFoundError: The following packages are not available from current channels:

Pip subprocess error: error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [56 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8' running bdist_wheel C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning:. warnings.warn(msg.format('we could not find ninja.')) running build running build_py copying diff_gaussian_rasterization__init.py -> build\lib.win-amd64-cpython-310\diff_gaussian_rasterization running build_ext C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning: warnings.warn(f'Error checking compiler version for {compiler}: {error}') Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\A\gaussian-splatting\submodules\diff-gaussian-rasterization\setup.py", line 17, in setup( File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\init__.py", line 117, in p return distutils.core.setup(**attrs) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\core.py", line 1p return run_commands(dist) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\core.py", line 1s dist.run_commands() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9s self.run_command(cmd) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\bdist_wheel.py", lin self.run_command("build") File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py", line 31d self.distribution.run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\command\build.pyn self.run_command(cmd_name) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py", line 31d self.distribution.run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\build_ext.py", linen _build_ext.run(self) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\command\build_exn self.build_extensions() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 43s self._check_cuda_version(compiler_name, compiler_version) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 80n torch_cuda_version = packaging.version.parse(torch.version.cuda) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_vendor\packaging\version.pe return Version(version) File "C:\ProgramData\anaconda3\envs\gaussiansplatting\lib\site-packages\setuptools_vendor\packaging\version.p match = self._regex.search(version) TypeError: expected string or bytes-like object [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 ╰─> [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 C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning:. warnings.warn(msg.format('we could not find ninja.')) running build running build_ext C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning: warnings.warn(f'Error checking compiler version for {compiler}: {error}') Traceback (most recent call last): File "", line 2, in File "", line 34, in File "C:\Users\A\gaussian-splatting\submodules\simple-knn\setup.py", line 21, in setup( File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools__init__.py", line 117, in p return distutils.core.setup(**attrs) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\core.py", line 1p return run_commands(dist) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\core.py", line 1s dist.run_commands() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9s self.run_command(cmd) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\bdist_wheel.py", lin self.run_command("build") File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py", line 31d self.distribution.run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\command\build.pyn self.run_command(cmd_name) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py", line 31d self.distribution.run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d super().run_command(command) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\dist.py", line 9d cmd_obj.run() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\build_ext.py", linen _build_ext.run(self) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\command\build_exn self.build_extensions() File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 43s self._check_cuda_version(compiler_name, compiler_version) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 80n torch_cuda_version = packaging.version.parse(torch.version.cuda) File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_vendor\packaging\version.pe return Version(version) File "C:\ProgramData\anaconda3\envs\gaussiansplatting\lib\site-packages\setuptools_vendor\packaging\version.p match = self._regex.search(version) TypeError: expected string or bytes-like object [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 ╰─> [69 lines of output] No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8' running install C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools_distutils\cmd.py:66: SetuptoolsDep. !!

          ********************************************************************************
          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:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:411: UserWarning:.
    warnings.warn(msg.format('we could not find ninja.'))
  C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py:346: UserWarning:
    warnings.warn(f'Error checking compiler version for {compiler}: {error}')
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "C:\Users\A\gaussian-splatting\submodules\simple-knn\setup.py", line 21, in <module>
      setup(
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\__init__.py", line 117, in p
      return distutils.core.setup(**attrs)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\core.py", line 1p
      return run_commands(dist)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\core.py", line 1s
      dist.run_commands()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\dist.py", line 9s
      self.run_command(cmd)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d
      super().run_command(command)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\dist.py", line 9d
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\install.py", line 9n
      return super().run()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\command\install.n
      self.run_command('build')
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\cmd.py", line 31d
      self.distribution.run_command(command)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d
      super().run_command(command)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\dist.py", line 9d
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\command\build.pyn
      self.run_command(cmd_name)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\cmd.py", line 31d
      self.distribution.run_command(command)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\dist.py", line 950, in run_d
      super().run_command(command)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\dist.py", line 9d
      cmd_obj.run()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\command\build_ext.py", linen
      _build_ext.run(self)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_distutils\command\build_exn
      self.build_extensions()
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 43s
      self._check_cuda_version(compiler_name, compiler_version)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\torch\utils\cpp_extension.py", line 80n
      torch_cuda_version = packaging.version.parse(torch.version.cuda)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_vendor\packaging\version.pe
      return Version(version)
    File "C:\ProgramData\anaconda3\envs\gaussian_splatting\lib\site-packages\setuptools\_vendor\packaging\version.p_
      match = self._regex.search(version)
  TypeError: expected string or bytes-like object
  [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

donggeunlee96 commented 3 weeks ago

How about installing WSL on your Windows environment and using gcc/g++ version 9?

AsherJingkongChen commented 3 weeks ago

I think you can try checking your NVIDIA CUDA development environment.

rdesc commented 3 weeks ago

Have you tried this? https://github.com/graphdeco-inria/gaussian-splatting/issues/1036#issuecomment-2446052962

Edit: nvm it looks like theres some other problem since in the link I sent it just points to the repo for simple_knn which I think should be downloaded fine