July 17, 2020 / Nirav S
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.
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
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
Have queries about your AWS project ideas and concepts? Please drop in your project details to discuss with our AWS experts, professionals and consultants.