Aurora_简 2025-07-07 22:17 采纳率: 0%
浏览 250

(3DGS)pip install diff-gaussian- rasterization报错

本人在配置3DGS的环境,下载了vs 2019,安装了cuda118,但还是报错,一直找不到原因QAQ


(3dgs) C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting\submodules\diff-gaussian-rasterization-main>pip install .
Processing c:\users\jian\desktop\research\3dgs\gaussian-splatting\submodules\diff-gaussian-rasterization-main
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: diff_gaussian_rasterization
  DEPRECATION: Building 'diff_gaussian_rasterization' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the `--use-pep517` option, (possibly combined with `--no-build-isolation`), or adding a `pyproject.toml` file to the source tree of 'diff_gaussian_rasterization'. Discussion can be found at https://github.com/pypa/pip/issues/6334
  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
  ╰─> [7 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-310\diff_gaussian_rasterization
      copying diff_gaussian_rasterization\__init__.py -> build\lib.win-amd64-cpython-310\diff_gaussian_rasterization
      running build_ext
      error: [WinError 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
  Running setup.py clean for diff_gaussian_rasterization
Failed to build diff_gaussian_rasterization
ERROR: Failed to build installable wheels for some pyproject.toml based projects (diff_gaussian_rasterization)

该安装的都装了,每一步都是跟着教程来,也重试了两三遍,尝试各种解决办法,但就是每次都最终卡在这个报错。

(3dgs) C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting\submodules\diff-gaussian-rasterization-main>cl
用于 x64 的 Microsoft (R) C/C++ 优化编译器 19.29.30159 版
版权所有(C) Microsoft Corporation。保留所有权利。

用法: cl [ 选项... ] 文件名... [ /link 链接选项... ]

(3dgs) C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting\submodules\diff-gaussian-rasterization-main>nvcc --version
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

  • 写回答

7条回答 默认 最新

  • 阿里嘎多学长 2025-07-07 22:18
    关注

    阿里嘎多学长整理AIGC生成,因移动端显示问题导致当前答案未能完全显示,请使用PC端查看更加详细的解答过程

    问题解答

    你遇到了使用 pip install diff-gaussian-rasterization 时报错的问题,可能是因为 submodule 的问题。

    解决方法:

    1. 试试使用 pip install -e . 命令安装 submodule,例如:
    (3dgs) C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting\submodules\diff-gaussian-rasterization>pip install -e .
    

    这将安装 submodule 并将其添加到 Python 的路径中。

    1. 如果上述方法不行,可以尝试使用 pip install 命令指定 submodule 的路径,例如:
    (3dgs) C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting>pip install C:\Users\Jian\Desktop\research\3DGS\gaussian-splatting\submodules\diff-gaussian-rasterization
    

    这将安装 submodule 并将其添加到 Python 的路径中。

    如果你仍然遇到问题,可以提供更多的错误信息或日志,以便更好地帮助你解决问题。

    评论

报告相同问题?

问题事件

  • 修改了问题 7月7日
  • 创建了问题 7月7日