There are two things required for compatibility, the right Python major.minor, which you could get via a pre-built
Python Build Standalone Linux binary like we do, and a compatible glibc. If you have the former but not the latter and your 3rd party dependencies include C extensions (platform specific wheels) you can still suffer incompatibility errors. See:
https://peps.python.org/pep-0600/#specification