How to Install Anaconda on Ubuntu 20.04
Last Updated :
01 Apr, 2024
Anaconda is a distribution of Python and R that is used for data science, Machine learning and Scientific analysis. It is designed to simplify the process of managing several complex software environments and packages required for data scientists. It offers several libraries and packages required for data analysis and data processing. Due to advancements in AI and machine learning, Anaconda become more popular among users.
In this article, we will guide you through the steps to install Anaconda on Ubuntu 20.04. Even though this article is based on installing Anaconda on Ubuntu 20.04, it is also applicable to other versions of Ubuntu as the installation process is the same.
Install Anaconda on Ubuntu
The steps to install the Anaconda distribution on the Ubuntu system are explained in detail below:
Step 1: Download Anaconda distribution
Visit the official website of Anaconda distribution and download the latest version of Anaconda distribution installer for Ubuntu.
downloading Anaconda distributionStep 2: Open the terminal
Open the terminal by pressing "Ctrl+Alt+T" or by clicking the terminal icon from the applications menu.
Open terminal Step 3: Navigate to downloads
Change the working directory of the terminal by executing the below command. You can also view the files in downloads using the 'ls' command. You can now see the Anaconda distribution installer in Downloads.
cd Dowloads
Change the working directory to DownloadsStep 4: Run the installer
After changing the directory to Downloads, run the Anaconda installer by executing the following command.
bash Anaconda3-2024.02-1-Linux-x86_64.sh
Run the Anaconda distribution installerStep 5: Review the license agreement
Now, the Anaconda installer will ask the user to review the license agreement. Press "Enter" to review the license agreement.
Installing Anaconda distributionStep 6: Accept license terms
After reading the license terms, the installer will ask whether you accept the license agreement. Type 'yes' and press 'Enter' to accept the agreement and continue the installation.
Accept the terms and conditions of AnacondaStep 7: Specify the installation location
After accepting the license agreement, the installer will ask for the installation folder for Anaconda distribution. You can press 'Enter' to install in the default location or you can specify your desired location. Then installer will start unpacking packages and install them. Installation may take some time.
Verify installation locationStep 8: Initialize Anaconda
After installing Anaconda, the installer will ask the user to initialize the conda. You can type yes and press 'Enter' to initialize Anaconda and finish installation. It will add the 'conda' tool to the system path, so users can run it from any directory.
Set up auto initialisationNow installation is complete and to activate Anaconda, just close the terminal and reopen it.
Step 9: Verify installation
Run 'conda info' in the newly opened shell to verify that the Anaconda distribution is installed properly. It will display the details of installation if it is installed successfully.
conda info
Verify Anaconda installationUpdating Anaconda
It is very important to keep the Anaconda updated to the latest version when new versions are released. It is pretty simple to update Anaconda packages. The steps to update Anaconda are given below:
Step 1: Run conda update command
To update Anaconda, run the following command in the terminal.
conda update --all
Update Anaconda distributionStep 2: Confirm updates
It will display a list of updates to your current installation and ask whether to proceed or cancel the update. Type 'y' and press 'Enter' to update it.
Confirm the updateIt is highly recommended to keep all the packages updated to the latest versions.
Uninstall Anaconda on Ubuntu
The steps to uninstall the Anaconda distribution from Ubuntu are given below:
Step 1: Execute the remove command
To uninstall Anaconda from your Ubuntu system, run the following command. It will remove all the files related to Anaconda.
rm -rf ~/anaconda3 ~/.condarc ~/.conda ~/.continuum
Uninstall AnacondaStep 2: Open bashrc file
Now to remove Anaconda from the system path, open 'bashrc' on gedit using the following command.
gedit ~/.bashrc
Open bashrc fileStep 3: Remove Anaconda from path
Scroll down to the end of the bashrc file and locate the contents related to the Anaconda installation. Select those parts and delete them to remove conda from the path.
Select contents related to AnacondaStep 4: Save the bashrc file
After deleting the selected contents, click on the save on top part of gedit or press "Ctrl+S" to save the edited bash file.
.webp)
Now you have successfully uninstalled Anaconda and also removed it from the path.
Conclusion
Anaconda is widely used by data scientists and researchers for data processing, machine learning, predictive analysis and data visualisation. It is a great tool to have for developers as it helps data scientists and developers easily manage multiple packages and virtual environments. In this tutorial, we have explained the steps to install Anaconda on Ubuntu, how to update Anaconda and finally the steps to uninstall Anaconda from Ubuntu. We hope that you have successfully installed Anaconda on your system following our tutorial and started your projects on data science. Feel free to share your thoughts about us in the comments!
Similar Reads
Non-linear Components In electrical circuits, Non-linear Components are electronic devices that need an external power source to operate actively. Non-Linear Components are those that are changed with respect to the voltage and current. Elements that do not follow ohm's law are called Non-linear Components. Non-linear Co
11 min read
Spring Boot Tutorial Spring Boot is a Java framework that makes it easier to create and run Java applications. It simplifies the configuration and setup process, allowing developers to focus more on writing code for their applications. This Spring Boot Tutorial is a comprehensive guide that covers both basic and advance
10 min read
Class Diagram | Unified Modeling Language (UML) A UML class diagram is a visual tool that represents the structure of a system by showing its classes, attributes, methods, and the relationships between them. It helps everyone involved in a projectâlike developers and designersâunderstand how the system is organized and how its components interact
12 min read
3-Phase Inverter An inverter is a fundamental electrical device designed primarily for the conversion of direct current into alternating current . This versatile device , also known as a variable frequency drive , plays a vital role in a wide range of applications , including variable frequency drives and high power
13 min read
Backpropagation in Neural Network Back Propagation is also known as "Backward Propagation of Errors" is a method used to train neural network . Its goal is to reduce the difference between the modelâs predicted output and the actual output by adjusting the weights and biases in the network.It works iteratively to adjust weights and
9 min read
What is Vacuum Circuit Breaker? A vacuum circuit breaker is a type of breaker that utilizes a vacuum as the medium to extinguish electrical arcs. Within this circuit breaker, there is a vacuum interrupter that houses the stationary and mobile contacts in a permanently sealed enclosure. When the contacts are separated in a high vac
13 min read
Linux Commands Cheat Sheet Linux, often associated with being a complex operating system primarily used by developers, may not necessarily fit that description entirely. While it can initially appear challenging for beginners, once you immerse yourself in the Linux world, you may find it difficult to return to your previous W
13 min read
Polymorphism in Java Polymorphism in Java is one of the core concepts in object-oriented programming (OOP) that allows objects to behave differently based on their specific class type. The word polymorphism means having many forms, and it comes from the Greek words poly (many) and morph (forms), this means one entity ca
7 min read
CTE in SQL In SQL, a Common Table Expression (CTE) is an essential tool for simplifying complex queries and making them more readable. By defining temporary result sets that can be referenced multiple times, a CTE in SQL allows developers to break down complicated logic into manageable parts. CTEs help with hi
6 min read
Linux/Unix Tutorial Linux is one of the most widely used open-source operating systems. It's fast, secure, stable, and powers everything from smartphones and servers to cloud platforms and IoT devices. Linux is especially popular among developers, system administrators, and DevOps professionals.Linux is:A Unix-like OS
10 min read