Comment 1 for bug 1832215

vital (vsbogd) wrote :

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.