- A isolated Python environment that is installed into a directory.
- Maintains it's own copy of Python and pip (Python's package manager).
- When activated all Python operations will route to the Python interpreter within the virtual environment.
- Keeps your global site-packages directory clean and manageable.
- Keeps system or user installed Python and it's libraries untouched.
- Solves the problem of “Project X depends on version 1.x but, Project Y needs 4.x”.
- Development will not interfere with the System or the user's python.
- All libraries installed in the virtual environment will only be used within that environment.
$ pip install virtualenv
In current directory:
python -m venv .
In a subdirectory that does not exist:
python -m venv ./new_dir
new_dir\scripts\activate.bat
. new_dir/bin/activate
<clone_root>\env\scripts\deactivate.bat
deactivate