For me the best way to install things across operating systems has been nix. I wish it was more popular in the ML community.