A distribution of libraries and software specifically built for Data Science.
It comes with Conda, a package and environment manager that will make your life better.
- Download Anaconda from the site https://www.continuum.io/downloads
- Install Anaconda
- Conda-install any other needed packages
Create a new project
This will create the necessary Python 3 environment for me:
conda create -n tea_facts python=3
This will create an environment with numpy installed in it:
conda create -n my_env numpy
Another very specified example:
conda create -n data python=3.5 numpy pandas
Activate & Deactivate
Activate environment
source activate tea_facts # Linux activate tea_facts # Windows
Deactivate environment
source deactivate # Linux deactivate # Windows
Installing packages
conda install numpy pandas matplotlib
Install Jupyter notebooks
conda install jupyter notebook
List the installed packages
conda list
Save & Load
You can save environments into YAML files, then share the saved environment with others so they can install the same packages used in your code.
conda env export > environment.yaml
Load an environment
conda env create -f environment.yaml
Remove environment
conda env remove -n env_name