Skip to content
Yong-Yeol Ahn edited this page May 11, 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 pandas matplotlib`

-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). pandas matplotlib means that you want to install these two packages in this virtual environment.

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

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

conda activate dviz 

Then you can start a Jupyter notebook from there.

To shut down the virtual environment:

conda deactivate