how to exit conda environment code example
Example 1: create a virtual environment python conda
conda create -n yourenvname python=x.x anaconda
Example 2: how to deactivate virtualenv
# This would only work when you have virtualenv activated.
# Kinda obvious, but I guess I'll point it out.
# Just type in this in your shell:
deactivate
Example 3: how to create a virtual environment in anaconda
conda create -n env_name python=x.x anaconda
Example 4: conda terminate environment
conda remove --name myenv --all