Skip to content
Yong-Yeol Ahn edited this page May 10, 2019 · 2 revisions

Anaconda supports virtual environments, which means we can create separate environments, and each can have its own Python version, packages, dependencies, etc. This can be very helpful to avoid path confusions and conflicts.

The following is an example of creating a virtual environment. Type in the terminal:

conda create -n dviz python=3.7 anaconda`

-n dviz sets the name of the virtual environment (you can replace it with your choice of naming). python=3.7 means that you want the environment to have Python 3.7 (replace it with the Python version you want). anaconda means you want to install Anaconda in this virtual environment. If you don't want all of Anaconda, you can replace anaconda in the command above with whatever packages you want.

When it asks you questions, type in "y".

After the installation finishes, you can activate the virtual environment by:

source activate dviz 

Then you can start a Jupyter notebook from there.

To shut down the virtual environment:

source deactivate