Closed jacobgorm closed 3 weeks ago
When a package is being built, it is by default built in an isolated build environment, it is up to the package (in this case gsplat
) to correctly define build requirements: https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#declaring-the-build-backend
If the package doesn't provide any build requirements you must install the requirements yourself first, and then install the package with --no-build-isolation
.
This isn't a pip issue, you should reach out to the package for support for how to install it.
Description
Trying to install a package with a setup.py that imports a package installed in the currently active venv, but not in the system python install, fails with a ModuleNotFoundError error.
Expected behavior
Expecting the depedency (torch i this case) to be found and the next package in the list (gsplat) being installed.
pip version
24.2
Python version
3.12.6
OS
Arch Linux x64
How to Reproduce
gsplat's setup.py imports torch, but fails with a ModuleNotFoundError, even though torch is clearly installed in the venv: Se below for the output.
Output
Code of Conduct