pip install -e does not build shared libraries

Cebtenzzre cebtenzzre at gmail.com
Wed Jun 21 17:45:53 EDT 2023


When I try to use `pip install -e .` with llama-cpp-python or
bitsandbytes, it doesn't build the shared libraries like `pip install
.` does.

In the case of llama-cpp-python, there is no _skbuild folder generated
at all, just llama_cpp_python.egg-info. This results in an error when
I try to import it, e.g. "FileNotFoundError: Shared library with base
name 'llama' not found". In this case, `python setup.py develop` also
works.

In the case of bitsandbytes, there is no build folder generated at
all, just bitsandbytes.egg-info. This results in an error when I try
to import it, e.g. "CUDA SETUP: Required library version not found:
libbitsandbytes_cuda121_nocublaslt.so. Maybe you need to compile it
from source?". In this case, `python setup.py develop` does not seem
to work either.

Is this something that can be fixed in the projects' setup.py or
pyproject.toml, or is it an issue with pip or setuptools?

Thanks,
Cebtenzzre


More information about the Python-list mailing list