{"id":10635,"date":"2021-09-28T10:31:24","date_gmt":"2021-09-28T10:31:24","guid":{"rendered":"https:\/\/linuxways.net\/?p=10635"},"modified":"2021-09-28T10:31:24","modified_gmt":"2021-09-28T10:31:24","slug":"how-to-install-anaconda-on-centos-8","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-install-anaconda-on-centos-8\/","title":{"rendered":"How to Install Anaconda on CentOS 8"},"content":{"rendered":"<p>Anaconda is a widely-used, open-source distribution of the Python programming language. It aids in the processing of large-scale data, scientific computations, and predictive analysis. When Anaconda is installed, it comes with over 250 data science packages. Furthermore, the Anaconda repository contains over 7500 open-source packages that can be installed individually after installing Anaconda on your system.<\/p>\n<p>If you are working on any machine learning or data science project then this is a great environment to use. It consists of many useful python and R libraries that you might require in your project.<\/p>\n<p>This article will take you through the installation of Anaconda on CentOS 8.<\/p>\n<h2><strong>Step 1: Install Packages for Anaconda Navigator<\/strong><\/h2>\n<p>Anaconda Navigator provides a simple graphical user interface for launching applications and managing packages in a conda environment. If you wish to use a GUI after installing Anaconda on your system, install the following packages. Run:<\/p>\n<pre><strong>$ sudo dnf install libXcomposite libXcursor libXi libXtst libXrandr alsa-lib mesa-libEGL libXdamage mesa-libGL libXScrnSaver<\/strong><\/pre>\n<h2><strong>Step 2: Download Anaconda<\/strong><\/h2>\n<p>Download the Anaconda installer from the <a href=\"https:\/\/www.anaconda.com\/products\/individual\">official site<\/a> using the terminal. At the time of writing this article, the current stable version of Anaconda is 2021.05. Run the following wget command to download the latest version of the anaconda installer:<\/p>\n<pre><strong>$ wget -P \/tmp <\/strong><a href=\"https:\/\/repo.anaconda.com\/archive\/Anaconda3-2021.05-Linux-x86_64.sh\"><strong>https:\/\/repo.anaconda.com\/archive\/Anaconda3-2021.05-Linux-x86_64.sh<\/strong><\/a><\/pre>\n<h2><strong>Step 3: Check Download Integrity <\/strong><\/h2>\n<p>In this step, you can check the integrity of the anaconda installer. Run the following command to validate the script\u2019s integrity using the SHA-256 checksum.<\/p>\n<pre><strong>$ sha256sum \/tmp\/Anaconda3-2021.05-Linux-x86_64.sh<\/strong><\/pre>\n<p>The terminal will display the following output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1005\" height=\"69\" class=\"wp-image-10637\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-641.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-641.png 1005w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-641-300x21.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-641-768x53.png 768w\" sizes=\"auto, (max-width: 1005px) 100vw, 1005px\" \/><\/p>\n<p>Verify the output against the sha256 hash column value in the <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/hashes\/lin-3-64\/\">Anaconda with Python 3 <\/a> page.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1243\" height=\"274\" class=\"wp-image-10638\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-642.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-642.png 1243w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-642-300x66.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-642-1024x226.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-642-768x169.png 768w\" sizes=\"auto, (max-width: 1243px) 100vw, 1243px\" \/><\/strong><\/p>\n<p>The two digits should match meaning the installer we have downloaded is authentic.<\/p>\n<h2><strong>Step 4: Install Anaconda<\/strong><\/h2>\n<p>To begin the installation of Anaconda on CentOS 8 execute the command:<\/p>\n<pre><strong>$ bash \/tmp\/Anaconda3-2020.02-Linux-x86_64.sh<\/strong><\/pre>\n<p>You should see the output shown below prompting you to review the license agreement to proceed with the installation process. Press enter.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"756\" height=\"192\" class=\"wp-image-10639\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-643.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-643.png 756w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-643-300x76.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/p>\n<p>Following that, you will be asked to agree to license terms. Scroll down to review the license agreement. Then, type yes to agree to the license terms and conditions.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1085\" height=\"140\" class=\"wp-image-10640\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-644.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-644.png 1085w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-644-300x39.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-644-1024x132.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-644-768x99.png 768w\" sizes=\"auto, (max-width: 1085px) 100vw, 1085px\" \/><\/strong><\/p>\n<p>Next, you\u2019ll be required to select the installation location. To use the default installation directory press Enter to proceed.<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"702\" height=\"159\" class=\"wp-image-10641\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-645.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-645.png 702w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-645-300x68.png 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/strong><\/p>\n<p>Once the installation process is done, you will be prompted to run the conda init command to initialize Anaconda. This modifies the PATH environment variable, allowing Anaconda to run from any directory on your computer. To proceed, type yes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"625\" height=\"121\" class=\"wp-image-10642\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-646.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-646.png 625w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-646-300x58.png 300w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/p>\n<p>If the installation is complete, the output is as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"334\" class=\"wp-image-10643\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-647.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-647.png 962w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-647-300x104.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-647-768x267.png 768w\" sizes=\"auto, (max-width: 962px) 100vw, 962px\" \/><\/p>\n<p>Finally, activate the Anaconda installation by either closing and re-opening your current shell or loading the new PATH environment into the current shell as shown:<\/p>\n<pre><strong>$ source ~\/ .bashrc<\/strong><\/pre>\n<h2><strong>Step 5: Verify Anaconda Installation<\/strong><\/h2>\n<p>To verify if Anaconda is successfully installed on CentOS 8. Run the command:<\/p>\n<pre><strong>$ conda info<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1088\" height=\"558\" class=\"wp-image-10644\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-648.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-648.png 1088w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-648-300x154.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-648-1024x525.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-648-768x394.png 768w\" sizes=\"auto, (max-width: 1088px) 100vw, 1088px\" \/><\/strong><\/p>\n<p>Information about Anaconda will be displayed on the terminal. Anaconda is now successfully installed on CentOS 8. To open the navigator GUI page, run the command:<\/p>\n<pre><strong>$ anaconda-navigator<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"686\" class=\"wp-image-10645\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-649.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-649.png 1020w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-649-300x202.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-649-768x517.png 768w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/strong><\/p>\n<h2><strong>Step 6: Updating Anaconda<\/strong><\/h2>\n<p>You can regularly update conda and all packages associated with it as shown:<\/p>\n<pre><strong>$ conda update --all<\/strong><\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"646\" class=\"wp-image-10646\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-650.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-650.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-650-300x189.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/09\/word-image-650-768x485.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/strong><\/p>\n<p>If there are any available updates, a list of the packages to be updated will be displayed on the terminal.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>That\u2019s how you install Anaconda on your CentOS system. You can now start building your machine learning projects.<\/p>","protected":false},"excerpt":{"rendered":"<p>Anaconda is a widely-used, open-source distribution of the Python programming language. It aids in the processing of large-scale data, scientific computations, and predictive analysis. When Anaconda is installed,&hellip;<\/p>","protected":false},"author":1,"featured_media":10676,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[481,93],"class_list":["post-10635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","tag-anaconda","tag-centos-8"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=10635"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/10635\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/10676"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=10635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=10635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=10635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}