script = virtualenv.create_bootstrap_script(s, python_version='2.7')
f = open('bootstrap.py', 'w')
f.write(script)
How to install python packages in virtual environment only with virtualenv bootstrap script?