Anaconda for UbuntuIntroduction to AnacondaAnaconda is a distribution of the R and Python programming languages for scientific computing (predictive analytics, large-scale data processing, machine learning applications, data science, etc.) that aims for simplifying package deployment and management. The distribution contains several packages of data science compatible with macOS, Linux, and Windows. It is maintained and developed by Anaconda Inc., which was detected by Travis Oliphant and Peter Wang in 2012. Also, it is called Anaconda Individual Edition or Anaconda Distribution as a product of Anaconda Inc., while other products through the company are Anaconda Enterprise Edition and Anaconda Team Edition. In Anaconda, package versions are handled by the conda which is the package management system. The package manager was meshed out as an isolated open-source package because it ended up being helpful on its own. Also, there is a small bootstrap release of Anaconda which is called Miniconda which contains only the packages, python, conda, and some other packages they rely on. Overview of AnacondaAnaconda distribution provides 250+ packages installed automatically, 7500+ extra open-source packages could be installed from PyPI, virtual environment, and conda package manager. Also, it contains GUI-based Anaconda Navigator as an alternative to the CLI. The huge difference between the pip package manager and conda is how the dependencies of the package are handled which is an important challenge for Python data science and the cause conda exists. When pip downloaded a package before the 20.3 version, it automatically installed a dependent Python package without inspecting if these clashed with installed packages. It will install a package and its dependencies regardless of the existing installation state. In a few cases, the package will occur to work but generate different outcomes. While pip has implemented steady dependency resolution, this distinction accounts for a historical contrast of the conda package manager.
Anaconda NavigatorIt is a desktop GUI contained in Anaconda Distribution that permits users for launching applications and handles conda packages, channels, and environments without using the commands of the command line. Navigator can find packages in a local Anaconda Repository or on Anaconda Cloud, install them inside an environment, update the packages and run them. It's available for Linux, macOS, and Windows. By default, the below applications are available in Navigator:
JupyterLab: It is a flexible working environment for reproducible and interactive computing based on the Jupyter Architecture and Notebook. Jupyter Notebook: It is an interactive and web-based computing notebook environment. Also, we can edit and execute human-readable documents while specifying the data analysis. Spyder: It is a scientific Desktop Environment of Python. Spyder is a robust Python IDE along with advanced editing, introspection, debugging features, and interactive testing. QtConsole: QtConsole is the PyQt graphical user interface that supports proper multiline and inline figure editing with graphical call tips, syntax highlighting, and more. Visual Studio Code: VSCode can be described as a streamlined code editor. It supports development operations such as version control, task running and debugging. Orange: Orange is a framework for component-based data mining. It can be applied for data analysis and data visualization. In Orange, the workflows are very collective and offer a large toolbox. Glueviz: It is applied for multidimensional data visualization around files. It represents relationships among and within related data sets. RStudio: RStudio is a group of integrated tools created to help us be more beneficial with R. It contains R notebooks and essentials. CondaIt is an environment management system and language-agnostic, cross-platform, open-source package manager that updates, installs, and runs packages and their dependencies. It was made for Python programs but it can distribute and package software for the languages such as multi-language projects. The conda environment manager and package are contained in every version of Anaconda Repository, Miniconda, and Anaconda. Conda CommandsConda offers a basic collection of commands and these are necessary for behaving as an interface between the software and the user. The commands can be used to create and modify environments, install and delete packages, manage queries, define dependencies, etc. The following are some of the most basic and used conda commands:
Conda PerformanceSome methods can be used in improving the conda system performance likely:
Anaconda CloudIt is a package management service in which users can share, store, access, and find private and public PyPI, conda, environments, and notebook packages. Cloud hosts helpful Python packages, environments, and notebooks for a huge range of applications. Users don't require to log in or to have any Cloud account to find public packages and download them. Users can establish new packages with the help of the command-line interface of the Anaconda Client, then automatically or manually upload the packages onto the Cloud. Features of Anaconda
Installing Anaconda on UbuntuIn Ubuntu, the installation activities need updating packages before continuing. Anaconda is the best in its several functional abilities which contain performing programming, influencing predictive analytics, processing and computing large-scale data, and managing system packages in the Python language. Anaconda is an enthusiastic podium for achieving machine learning from a broader perspective. Anaconda serves the aim of a command-line tool, as the navigator is based on GUI. Also, Anaconda is compatible with Linux, Windows, and macOS, operating systems. Two outstanding depository tools included in Anaconda contain the navigator. It's always recommended for installing the latest release of the open-source server that we want to install in Linux. In this article, we will explain how we can install Anaconda on our Ubuntu system. RequirementsSome requirements to install Anaconda in the Ubuntu system need that the user login as a root user. Access to the command line or terminal window, as well as the information on the latest Anaconda version, are the common requirements before the installation process. InstallationThe whole process for installing Anaconda consists of five fundamental steps which are mentioned below:
Update the APT packageThe foremost and first rule of installing a program in Linux is updating our system packages. We need to update our existing system packages with the help of the below command: We need to download curl if it doesn't already present on our Ubuntu system. It will assist in operating the commands for Anaconda installation. We can use the following command for getting curl on our system: Download the latest Anaconda versionWe can use the curl tool in the terminal window for downloading the Anaconda installer: Important: Remember that the 2020.02 version is only compatible with the 3.7 version of Python which is mentioned above. Data integrity verificationThe below command will assist us in authenticating the data integrity of our downloaded Anaconda version: Now, we need to compare the code shown on our output screen along with the Hash code with the Anaconda version on the page. Both of these codes should the same or else we are not using the compatible version of Anaconda that is similar to the version of Python and the utility will not properly function in this case. Package installationWe will be needed to execute the bash script for proceeding with the installation process: We can change the number of the version if we are using a few other Anaconda versions. A license agreement will occur on our output screen after successfully running the command. We need to click on the Enter button and enter "Yes" for granting permission and proceed with the process. It's preferable for keeping the default location. Our output screen will display us the finished installation description once we enter the window. After agreeing to every agreement by clicking on the Enter button, we can now start our installer. Installed Anaconda package verificationWe need to enter the conda command to show the verification information for verifying the installation of our package: The output screen will give us every information related to our installed package of Anaconda. Updating Anaconda in UbuntuFor updating Anaconda in Ubuntu, begin by updating the utility of Anaconda: Next, we need to execute the update command of the Anaconda package: Establish and Run Anaconda EnvironmentsSuppose we need to establish an environment of Python 3 named make_environment by typing the following: Run the environment by using the following: The command prompt will modify. It indicates that we are now within a shell environment with Python 3. Now, we can work in this specific environment. How to Remove Anaconda from Ubuntu?If you wish to remove Anaconda from our Ubuntu system, we need to follow the following steps: Step 1: Remove the install directory of Anaconda To remove the entire installation directory type of Anaconda, we need to enter the following command in the terminal window: Step 2: Editing the PATH environment variable We need to edit the file, i.e., ~/.bashrc, and delete the Anaconda directory using the path environment variable. Step 3: Delete the hidden files The below command will delete the hidden folders and files that have been made in our user home directory: Next TopicUbuntu Snap |