When I'm trying to create a new Python 3 virtual environment by using mkvirtualenv
(virtualenvwrapper command) and os.system
like this
import os
os.system('mkvirtualenv foo')
nothing happens.
os.system("mate-terminal -e 'workon foo'")
doesn't work either.
The point is to quickly create a new virtual env and work on it later for each project (it's an automation script). virtualenvwrapper
is the most convenient option.