How to install Anaconda on AWS linux instance?

How to install Anaconda on AWS linux instance?

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.

Thank you for installing Anaconda3!

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

Talk to AWS Certified Consultant

    Spread Love By Sharing:

    Let’s Talk About Your Needed AWS Infrastructure Management Services

    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.

    • Swift Hiring and Onboarding
    • Experienced and Trained AWS Team
    • Quality Consulting and Programming
    Let’s Connect and Discuss Your Project