The root cause is the Debian patch: https://salsa.debian.org/cpython- team/python3-stdlib/blob/master/debian/patches/3.6/distutils-install- layout.diff
The patch changes behavior of the `get_python_lib` for two paths '/usr' and '/usr/local', see: https://salsa.debian.org/cpython-team/python3-stdlib/blob/master/debian/patches/3.7/distutils-install-layout.diff Lines 144 and 152-157. I would suggest remove '/usr/local' from the line 144 to fix. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1832215 Title: If python package is installed under get_python_lib(prefix='/usr/local') it cannot be imported by python To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/1832215/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs