how to use virtualenv python 2.7 code example Example: virtual env python 2 virtualenv -p C:\Python27\python.exe venv .\venv\Scripts\activate