Solve the error reported when using python venv on linux ubuntu23.04: ensurepip is not available

Error reporting

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.11-venv

You may need to use sudo with that command.  After installing the python3-venv
package, recreate your virtual environment.

Failing command: /D/Workspace/KQ/jenkins-pipeline-generator/myenv/bin/python3

insert image description here

solve

sudo apt install python3-venv -y

insert image description here

Guess you like

Origin blog.csdn.net/a772304419/article/details/132490738