July 17, 2020 / Nirav Shah
Anaconda is an open-source distribution of Python and R Programming languages. It is mainly used in Data Science and Machine Learning. Anaconda distribution contains over 1,500 packages selected from the conda and PyPI packages and virtual environment manager.
Prerequisites
We assume you are running an Amazon Linux AMI and have root access. Now, Install python by following commands:
$ yum install python3 -y
Before installing Anaconda make sure all packages are installed on your Linux ec2 environment
$ yum install libXcomposite libXcursor libXi libXtst libXrandr alsa-lib mesa-libEGL libXdamage mesa-libGL libXScrnSaver -y
Ok perfect, Now let install Anaconda on Amazon Linux (Ec2)
$ wget https://repo.anaconda.com/archive/Anaconda3-2020.02-Linux-x86_64.sh
More information please visit this link
After download run the downloaded script
$ sh Anaconda3-2020.02-Linux-x86_64.sh
Just following the above script and press “enter” you will get Anaconda to install location
/home/chandan/anaconda3
After installing all dependencies you will get pop up notification like this.
Use the following command to activate the installation
$ source ~/.bashrc
To use conda on through CLI use the following commands.
Some examples are as follows:
To install a package
$ conda install package_name
To update a package
$ conda update package_name
To remove a package
$conda remove package_name

Nirav Shah is the Director of Eternal Web Pvt Ltd, an AWS Advanced Consulting Partner and certified Odoo Partner based in the UK. With over a decade of experience in cloud computing, digital transformation, and ERP implementation, Nirav helps enterprises adopt the right technology to solve complex business challenges. He specialises in AWS infrastructure, Odoo ERP, and web development solutions for businesses across the UK and beyond.
Have queries about your project idea or concept? Please drop in your project details to discuss with our AWS Global Cloud Infrastructure service specialists and consultants.