sudo apt-get install python3-venv#Now, go to the folder you want to create the virtual environmentpython3 -m venv <Dirname>python3 -m venv pvenv #In this case the folder "pvenv" is going to be cratedsource <Dirname>/bin/activatesource pvenv/bin/activate #Activate the environment#You can now install whatever python library you needdeactivate #To deactivate the virtual environment
The errorerror: invalid command 'bdist_wheel'is fixed runningpip3 install wheelinside the virtual environment