Virtualenv can build a virtual and stand-alone Python environment, allowing each project environment to be isolated from other projects, keeping the environment clean, and resolving package conflict issues (very useful).
Installation:
Virtualenv is actually a python package that can be installed directly with Easy_install or PIP
Easy_install virtualenv or pip install virtualenv or apt-get install python-virtualenv
Use:
Create a virtual Environment: virtualenv [Absolute path to--python=/python] Project-name (if you have multiple versions of Python, you can also specify which version to use)
To start the virtual environment:
Exiting the virtual environment: deactivate
Virtualenvwrapper is a virtualenv extension tool that makes it easy to create, delete, copy, and switch between different virtual environments. Want to know the words can own Google.
Build a Python standalone virtual environment