Automation, Orchestration, and Scripting
On a freshly installed Ubuntu server, an administrator runs python3 -m venv /srv/app/.venv and receives an error that ensurepip is not available. Which action resolves the problem?
Show the answer
Correct answerA. Install the python3-venv package with the system package manager
Debian-based distributions split ensurepip and venv support into the python3-venv package, so installing it lets venv create the environment. Reinstalling pip with ensurepip depends on the same missing component, and --system-site-packages only changes package visibility.