There are two different pythons installed, in /usr/bin/python3 and /usr/local/bin/python3, which look for their packages in two different directories (/usr/lib/... and /usr/local/lib/... respectively). This has caused a bug for me because I built an image based off of the python image, which installed a bunch of stuff in /usr/local/lib/, but it breaks if the user of my image accidentally uses the /usr/bin/python3 one.
I can work around this by getting rid of the /usr/bin/python3*, but why does this exist in the first place?
I found the answer in the Github Issues: apparently it’s an unavoidable side effect of the other packages that are included with the non-slim versions of python.