Anaconda is a popular open-source distribution for Python and R programming languages. It is widely used for scientific computing, predictive analytics, data science, and several other applications. In this blog post, we will guide you through the steps to download and install Anaconda on a Linux machine.
Step 1: Downloading the Anaconda Installer Script
Firstly, open your terminal and navigate to the directory where you would like to download the Anaconda installer. The latest version of Anaconda installer for Linux can be downloaded from the Anaconda Downloads page. You can use wget to download it. Here is the command for it:
wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh
Step 2: Verifying Data Integrity of the Installer
For security purposes, it is recommended to check the data integrity of the installer. You can do this by using the sha256sum command followed by the name of the file you just downloaded:
sha256sum Anaconda3-2019.03-Linux-x86_64.sh
The output should match the hash provided in the Anaconda Downloads page.
Step 3: Running the Anaconda Installer
Now, let’s run the Anaconda installation script. Change the permissions and execute the shell script:
chmod +x Anaconda3-2019.03-Linux-x86_64.sh ./Anaconda3-2019.03-Linux-x86_64.sh
Follow the prompts on the screen. If you agree with the license terms, type yes.
Step 4: Completing the Installation
At the end of the script, you will be asked whether you want to prepend the Anaconda install location to the PATH in your .bashrc file. It’s recommended to say yes to set Anaconda Python as your default Python.
Once installed, you can activate and test the installation by opening a new terminal session and running:
source ~/.bashrc conda list
If your installation is successful, the conda list command will display a list of installed packages.
And there you have it! You’ve successfully installed Anaconda on your Linux machine. Happy coding!