Install a package in a virtual environment with pip arguments

pipx

  • Install and run python applications in isolated environments.
    More information: <https://github.com/pypa/pipx>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

pipx install --pip-args='{{pip-args}}' {{package}}

click the source code to copy install pipx on any operating system with command-not-found.com