sudoapt-getinstallpython3-venv#Now, go to the folder you want to create the virtual environmentpython3-mvenv<Dirname>python3-mvenvpvenv#In this case the folder "pvenv" is going to be createdsource<Dirname>/bin/activatesourcepvenv/bin/activate#Activate the environment#You can now install whatever python library you needdeactivate#To deactivate the virtual environment