A mix of hold your breath and pray, and google until you find some github issue or stack overflow post that addresses incompatibilities of version x.x.x with OS version y.y.y on architecture z, then download some custom wheel that a person uploaded to their personal PyPi instance.
It's one of the most stressful and least-fun parts of being a developer for me.
I keep reading about NixOS lately, but I haven't done a deep dive into it. Does this seem like something that could be useful for this?
Also, does anyone have any resources for pragmatically working through such things or guidelines to help maintain one's sanity?