[Python] How do I install a python-based CLI from a venv globally?

Discussão em 'Python' iniciado por Stack, Junho 9, 2025.

  1. Stack

    Stack Membro Participativo

    I'm developing a CLI application with Python and I can install it with pip install -e . for an editable install, however this installs it only in the virtual environment. I can't access the CLI from things like Ubuntu's custom keyboard shortcuts, or Thunar's custom keyboard shortcuts.

    I can install everything globally instead, but this causes package version conflicts.

    How can I expose my CLI globally, in an editable way, while managing dependencies in an isolated environment?

    Do I need some wrapper script, manually added to the PATH, or is there a pip option for this?

    Continue reading...

Compartilhe esta Página