Install pulp-cli

Trying to install pulp-cli (pip install pulp-cli) on Ubuntu 24.04, but i receive an error of “error:externally-managed-environment.” There’s a way to bypass it by adding --break-system-packages, but it says it risks breaking the Python installation or OS. Also, see it says create a virtual environment by using 'python3 -m venv /path/to/venv or using pipx, which “will manage a virtual environment for you.” I am currently using a virtual environment in testing pulp. Wanted to verify will using ‘pipx’ and ‘python3 -m venv /path/to/venv’ create a virtual environment within the virtual environment that i’m already using? Also, what is the best course of action to install be able to install pulp-cli?

1 Like

pipx is certainly an option. Using uv tool install should work too.
Whatever you choose it should be using a virtualenv of some sort.