pipx

"pipx is made specifically for application installation, as it adds isolation yet still makes the apps available in your shell: pipx creates an isolated environment for each application and its associated packages."

I have been using pipx to install Python command-line applications (not libraries).