Missing pip and python3-venv for default python3 in jammy kubernetes images
Trevor-Reid opened this issue · comments
Trevor-Reid commented
For Kubernetes image rstudio/r-session-complete-preview:dev-jammy-2023.06.0-421.pro1
the default python3
is missing many modules that we use in the Workbench QA Automation tests.
The default python3
can no longer call venv
or pip
$ python3 -m pip install test
/bin/python3: No module named pip
$ python3 -m venv .venv
The virtual environment was not created successfully because ensurepip is not
available. On Debian/Ubuntu systems, you need to install the python3-venv
package using the following command.
apt install python3.10-venv
You may need to use sudo with that command. After installing the python3-venv
package, recreate your virtual environment.
Failing command: ['/mnt/home/rich/.venv/bin/python3', '-Im', 'ensurepip', '--upgrade', '--default-pip']
For Workbench QA Automation, this is used in our KubernetesUbuntu
environment launched via fuzzbucket