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.

C++
sudo apt-get install python3.6-venv# einstall virtual environment by mentioning current 
# python version(3.8) as follow

$ sudo apt-get install python3.xx-venv
Source

Also in C++: