The issue is that /usr/lib/python3/sysconfig.py is hardcoded to 'site-packages' (see _INSTALL_SCHEMES variable in the code). If your code uses sysconfig.get_path() to get the python3 site dir, it will fail on ubuntu.
So either the fix needs to change /usr/lib/python3/sysconfig.py or packages need to be fixed to use distutils
The issue is that /usr/lib/ python3/ sysconfig. py is hardcoded to 'site-packages' (see _INSTALL_SCHEMES variable in the code). If your code uses sysconfig. get_path( ) to get the python3 site dir, it will fail on ubuntu.
So either the fix needs to change /usr/lib/ python3/ sysconfig. py or packages need to be fixed to use distutils