Anaconda is a popular platform commonly used for Data Science development. It uses Python and R as its primary programming languages for the development and is normally used by data scientists and scientific community. Anaconda platform is available as a free and open source distribution for the most standard operating systems such as Linux, Windows and Mac OS X so you can easily develop data science and Machine learning applications.
When installing the IDE (Integrated Development Environment), Anaconda includes all the basic packages and libraries required for the development in Python or R. It is a free package and environment manager which allows the user to utilize its repository which contains more than 1,500 open source packages. Apart from its free distribution, Anaconda is also available in paid enterprise version which is generally used for large-scale data processing, predictive analytics, scientific computing etc. So in this article, I will guide you on how to install Anaconda in Ubuntu 18.04.
Download Anaconda on Ubuntu 18.04
To install Anaconda on your Linux Machine, you have to download its free distribution from the Anaconda official website. Go on and click on the link: Download Anaconda, this will direct you to the Anaconda distribution page as shown below.
From the Anaconda Distribution page, scroll down to the Anaconda Installer section as shown above. Click on the Linux tab to select the preferred operating system. Now below Anaconda Linux Installer section, click on 64-bit (x86) Installer if you have a 64-bit Linux installed on your Machine otherwise click on the 32-bit Installer.
After clicking on the installer, a dialog box will pop up (if you’re using Mozilla Firefox) as shown above, make sure you have selected the Save File option, this will download the installer in the default Downloads folder of your Ubuntu. To start downloading the installer, click OK.
After successful download, you can check the installer in the Downloads folder as shown above.
Installing Anaconda on Ubuntu
In this article, we have downloaded and used the Anaconda 2018.12 version. Anaconda may have released a new version updated by the time you refer to this guide but don’t worry because the process will remain same for each version.
To run the Anaconda Installer, open up the Terminal from the Application drawer as shown above.
After the Terminal launches up you have to open up the Downloads directory through a command line as shown above. In order to do so, after “:~$” type in the following command and hit Enter:
Now from the Terminal, you’re in the Downloads directory where the Anaconda installer is downloaded.
Now to list the installer in the Downloads Folder type the following command as shown above and hit Enter:
This will list the Anaconda3 installer file in the Downloads folder as highlighted.
Now type in the following command to run the Anaconda installer as shown above:
Now hit Enter to run the command.
Now you’ll be Welcomed to the Anaconda setup after running the bash command as highlighted above. Before you wish to start the installation process, you have to agree with its terms and conditions. Now hit Enter to review license agreement.
In the license agreements phase, simply press Spacebar for several times to reach the end of the License agreement. To accept the terms and conditions type in Yes and hit Enter to continue as highlighted above.
After you agree to its license terms, now in this phase, enter the directory where you want to install the Anaconda Python as highlighted above. It is recommended to leave the location for the installation to be the default, as this default location is the user’s HOME directory on Ubuntu. You can change the directory by entering the preferred path. Now, to choose it as default, simply press Enter to assign the location.
After setting the directory, you can see that the installation process has been started as highlighted above. You have to wait few minutes until the installation process is being successfully completed.
After the installer has successfully installed the Anaconda Python on your Machine, the next prompt will ask you whether you want to include the installed Anaconda Python location to the Path of your Ubuntu 18.04 LTS as highlighted above. Simply type in Yes and hit Enter.
Now the next prompt will show you that you have successfully installed Anaconda Python on your Ubuntu 18.04 LTS as shown above. After successfully completing the installation, it will ask you to install the code editor Visual Studio Code which is created by Microsoft. It is recommended by Anaconda as it recently teamed up with the Microsoft.
If you prefer the VSCode editor then type in Yes to install it otherwise just type in no and hit Enter if you only want to install Anaconda on Ubuntu 18.04 LTS as shown above. Now simply close the Terminal and open it again to make the changes to become active. Now you are ready to use Anaconda Python and run it on your Ubuntu’s Terminal.
That’s it! Hope this article has helped you on how to install Anaconda in your Ubuntu 18.04 LTS. If you have any confusion or experienced any difficulty in following the instruction given above, please let us know in the comments section below.