@simon brew is preferred, but pipx is great for things not big enough to be there.
I do prefer local installs for project-specific tools (like pytest, where I just have many copies of it on my computer). But for general purposes utilities that happen to be written in Python, pipx is perfect.