the virtual environment was not created successfully because ensurepip is not available code example
Example 1: 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.
sudo apt-get install python3.6-venv
Example 2: The virtual environment was not created successfully because ensurepip is not available.
sudo apt-get install python3.x-venv
Replace x with whichever version of oython3 you have. The try recreating the environment