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
As a Director of Eternal Web Private Ltd an AWS consulting partner company, Nirav is responsible for its operations. AWS, cloud-computing and digital transformation are some of his favorite topics to talk about. His key focus is to help enterprises adopt technology, to solve their business problem with the right cloud solutions.
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.