Creating Virtual environment using python 3.8 when python 2.7 is present

If you would like to create a virtualenv with python 3.X having the version 2.X

You just have to pass a parameter argument for your virtual env.

$ virtualenv venv -p $(which python3)

This command will point to your current python3 install folder, and create a virtualenv copied from your current python3 binaries.

If you would like to see what this command does, just fire the command:

$ which python3
#should print your current python3 binary folder.

you need install python3.8 to your enviroment, if you are in ubuntu(18.04):

sudo apt install python3.8

and:

mkvirtualenv name_of_the_project -p python3.8