Member-only story

Python Tips — Pipx

Tony
5 min readMar 20, 2024

Why Pipx

Previously we discussed the benefits of installing your Python projects within individual virtual environments. These virtual environments provide isolation for your projects, preventing conflicts with dependencies, unlike system-wide or per-user environments.

The same logic applies when installing third-party Python applications, such as code formatters like black. Applications typically have multiple dependencies, and they can be quite specific about the versions they require.

However, managing and activating a separate virtual environment for each application can be cumbersome and confusing. It also limits you to using one application at a time. Wouldn’t it be convenient if we could contain applications within virtual environments while still making them accessible globally? This is where pipx comes to the rescue.

What is Pipx

pipx (https://pipx.pypa.io/) is a handy and efficient tool that simplifies the management of Python applications, making it easier than ever to install, run, and manage them in isolated environments. Whether you’re a developer working on various projects or simply looking for a convenient way to run Python applications without cluttering your system, pipx is here to streamline the process.

--

--

Tony
Tony

No responses yet