Package management in central is a bit of an issue. I think nix has the right approach where it's incredibly difficult to create a package that won't work on x system. I think appimage flatpak and snap all work in a similar way
Pip is a right pain in the arse though, if I had a nickel for every time a pip install has failed for some specific package with an esoteric error message...
Super easy to do nowadays, everything I write is cross platform just by virtue of every programming language I use being that way provided I'm somewhat mindful about it