It is an environment management system for Python (also can be for other language) that is packaged with popular modules and libraries for python for doing data science and machine learning.
A conda environment has following stuff available:
Download the shell script (installer) for linux from the link:
https://www.anaconda.com/download/#linux
Python version 3+ is recommended.
Open your terminal and run the script
bash anaconda_script_name.sh
Here, anaconda_script_name will be according to your download.
By default, the installation script should add the conda to the system path.
If not, then you have to add it to bashrc file as:
export PATH=${PATH}:"path_to_conda_bin"
Download the graphical installer for windows.
https://www.anaconda.com/download/#windows
Make sure you choose the right architecture (32-bit/64-bit) according to your device.
Make sure you choose add to system path or similar box to add the conda command to system.
You can create a new conda environment by using the command:
conda create --name env_name
where, env_name can be any name without spaces. Eg:
conda create --name workshop-1
The environment if available can be activated as:
source activate workshop-1
Once the environment is activated, the command prompt shows the environment’s name inside small brackets like:
(workshop-1) user:~$
Once inside the environment, open python shell by tying python
and try importing the modules:
>>> import numpy as np
>>> import pandas as pd
>>> import matplotlib.pyplot as plt
If conda’s installation and setup was successful, there’d be no errors importing those modules.
Run the command:
source deactivate
Inside the activated conda environment, run the command:
jupyter notebook
The notebook will start at localhost:8888
. So, make sure you open your browser and hit that url.