The first thing I do (or rather, ansible does) on any new PC or server is install Miniconda to a location inside my home folder, and set it as the first item in my PATH.
I’ve been down most of the python installation and packaging rabbit holes, and this practice has served me well.