From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> The modules are installed in the .egg directory, and therefore cannot be imported after that. Additionally PIP tries to remove the global gpiod module if it's not invoked with the --ignore-installed option. Specify correct --root and fix the --prefix switch. Link: https://github.com/pypa/pip/issues/3063 Suggested-by: Maxim Devaev <mdevaev@xxxxxxxxx> Reported-by: Maxim Devaev <mdevaev@xxxxxxxxx> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> --- bindings/python/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am index 804b214..65964c7 100644 --- a/bindings/python/Makefile.am +++ b/bindings/python/Makefile.am @@ -36,7 +36,7 @@ all-local: python-tests install-exec-local: $(PYTHON) -m pip install dist/*.whl \ - --prefix=$(DESTDIR)$(prefix) + --ignore-installed --prefix=$(prefix) --root=$(if $(DESTDIR),$(DESTDIR),/) SUBDIRS = gpiod -- 2.40.1