Anaconda environments
What does "conda env export" do?
Writes all the packages in an environment, including the Python version
Enter an anaconda environment
activate env_name
What command would you use to create an environment named data installed with Python 3.5, numpy, and pandas?
conda create -n data python=3.5 numpy pandas
Command to create an environment with a specific version of Python
conda create -n env_name python=#.#
What's the command to load an Anaconda environment?
conda env create -f env_name.yaml
How do you export an Anaconda environment so someone else can load it?
conda env export > env_name.yaml
What's the command to list out the environments you've created?
conda env list
What's the command to remove environments?
conda env remove -n env_name
Display packages installed in an environment
conda list
Why might you want to use environments?
To manage/write/use code created in different versions of Python