def reinstall_venv(): with cd(PERMANENT_PROJECT_FOLDER): sudo('rm -rf %s' % VENV_FOLDER) sudo('python3 -m venv %s' % VENV_FOLDER)