Skip to content

pip install ./diff-gaussian-rasterization failed #12

@kaeoticEve

Description

@kaeoticEve

os:windows 11
python: 3.11
pip list:
Package Version


certifi 2022.12.7
charset-normalizer 2.1.1
filelock 3.9.0
fsspec 2023.4.0
idna 3.4
Jinja2 3.1.2
MarkupSafe 2.1.3
mpmath 1.3.0
networkx 3.2.1
numpy 1.26.3
pillow 10.2.0
pip 24.0
requests 2.28.1
setuptools 65.5.0
sympy 1.12
torch 2.1.0+cu118
torchaudio 2.1.0+cu118
torchvision 0.16.0+cu118
typing_extensions 4.8.0
urllib3 1.26.13
xformers 0.0.24+cu118

I was following the installation guide in the readme.md up to the
"pip install ./diff-gaussian-rasterization"
then I encountered an error:
`
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Processing c:\users\heiye\repo\experiments\lgm\diff-gaussian-rasterization
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Traceback (most recent call last):
File "C:\Users\heiye\repo\experiments\LGM\env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\Users\heiye\repo\experiments\LGM\env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\heiye\repo\experiments\LGM\env\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\heiye\AppData\Local\Temp\pip-build-env-lgvsjz1o\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\heiye\AppData\Local\Temp\pip-build-env-lgvsjz1o\overlay\Lib\site-packages\setuptools\build_meta.py", line 295, in _get_build_requires
self.run_setup()
File "C:\Users\heiye\AppData\Local\Temp\pip-build-env-lgvsjz1o\overlay\Lib\site-packages\setuptools\build_meta.py", line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File "C:\Users\heiye\AppData\Local\Temp\pip-build-env-lgvsjz1o\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "", line 13, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
`
it says no module named torch while I have torch installed.
how can I fix it? thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions