{"id":9257,"date":"2021-08-13T11:49:02","date_gmt":"2021-08-13T11:49:02","guid":{"rendered":"https:\/\/linuxways.net\/?p=9257"},"modified":"2021-08-13T11:49:02","modified_gmt":"2021-08-13T11:49:02","slug":"how-to-install-anaconda-on-ubuntu-20-04-lts","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/ubuntu\/how-to-install-anaconda-on-ubuntu-20-04-lts\/","title":{"rendered":"How to Install Anaconda on Ubuntu 20.04 LTS"},"content":{"rendered":"<p>Anaconda is an open-source distribution of Python which includes some installation and package management utilities. It assists you in installing some popular Python and additional packages.. Anaconda has its own package manager known as Conda which helps in installing packages and creating Python environments. Its applications are in deep learning, machine learning, and data science fields.<\/p>\n<p>In this post, we will describe the step by step method for the installation of Anaconda on Ubuntu OS.<\/p>\n<p><strong>Note<\/strong>: The steps demonstrated here have been tested on <strong>Ubuntu 20.04 LTS (Focal Fossa).<\/strong><\/p>\n<h2>Step 1: Downloading Anaconda Installer Script<\/h2>\n<p>First, you will have to download the Anaconda installer latest version from its official <a href=\"https:\/\/www.anaconda.com\/products\/individual\">website<\/a>. Alternatively, you can use the command below to download the Anaconda installer:<\/p>\n<pre>$ wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2021.05-Linux-x86_64.sh<\/pre>\n<p>You can find the downloaded installer script in your current Terminal\u2019s directory.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1151\" height=\"207\" class=\"wp-image-9258\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-254.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-254.png 1151w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-254-300x54.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-254-1024x184.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-254-768x138.png 768w\" sizes=\"auto, (max-width: 1151px) 100vw, 1151px\" \/><\/p>\n<h3>Step 2: Verify Integrity<\/h3>\n<p>It is better to check the integrity of the bash script installer file you downloaded from the website using SHA-256. Create the sha256 cryptographic hash of the installer file using this command to validate its integrity:<\/p>\n<pre>$ sha256sum Anaconda3-2021.05-Linux-x86_64.sh<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1002\" height=\"74\" class=\"wp-image-9259\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-255.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-255.png 1002w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-255-300x22.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-255-768x57.png 768w\" sizes=\"auto, (max-width: 1002px) 100vw, 1002px\" \/><\/p>\n<p>Now match its result to the hashes available at <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/hashes\/\">the Anaconda website<\/a> for your installer script. If the result doesn&#8217;t match, it indicates either the installer script is either not completely downloaded or broken. If the result matches, proceed to the next step.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1448\" height=\"561\" class=\"wp-image-9260\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-256.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-256.png 1448w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-256-300x116.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-256-1024x397.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-256-768x298.png 768w\" sizes=\"auto, (max-width: 1448px) 100vw, 1448px\" \/><\/p>\n<h2>Step 3: Running the Anaconda Installer<\/h2>\n<p>Now in order to install Anaconda, you will need to run the Anaconda installer script. Use the below command to do so:<\/p>\n<pre>$ bash Anaconda3-2021.05-Linux-x86_64.sh<\/pre>\n<p>Hit <strong>Enter<\/strong> to Continue and view the license terms.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"447\" class=\"wp-image-9261\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-257.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-257.png 909w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-257-300x148.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-257-768x378.png 768w\" sizes=\"auto, (max-width: 909px) 100vw, 909px\" \/><\/p>\n<p>Scroll down to read the license terms. Then type <em>yes<\/em> and hit <strong>Enter<\/strong> to accept the terms.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"57\" class=\"wp-image-9262\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-258.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-258.png 633w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-258-300x27.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>Then you will be asked to specify an installation directory or to just hit <strong>Enter<\/strong> to accept the default installation location. After that, the installation will be started.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"633\" height=\"286\" class=\"wp-image-9263\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-259.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-259.png 633w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-259-300x136.png 300w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/p>\n<p>You will be then asked if you want to initialize the Anaconda by running <em>conda init.<\/em> Type <em>yes<\/em> and hit <strong>Enter<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"167\" class=\"wp-image-9264\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-260.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-260.png 586w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-260-300x85.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/p>\n<p>After the installation is finished, you will see the below output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"163\" class=\"wp-image-9265\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-261.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-261.png 828w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-261-300x59.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-261-768x151.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/p>\n<p>Now close and re-open your Terminal to activate the installation. On the other hand, you can also use the command below for this purpose:<\/p>\n<pre>$ source ~\/.bashrc<\/pre>\n<p>To verify if the Anaconda has been properly installed and activated, use the command below:<\/p>\n<pre>$ conda list<\/pre>\n<p>If everything is done correctly, you&#8217;ll get a list of all the packages available to you through the Anaconda installation.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"327\" class=\"wp-image-9266\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-262.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-262.png 729w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-262-300x135.png 300w\" sizes=\"auto, (max-width: 729px) 100vw, 729px\" \/><\/p>\n<h2>Uninstall Anaconda<\/h2>\n<p>You can also uninstall Anaconda if you do not require it anymore on your system:<\/p>\n<p>To Uninstall Anaconda, you will first need to install the anaconda-clean package using the command below:<\/p>\n<pre>$ conda install anaconda-clean<\/pre>\n<p>Then using the below command, remove all the Anaconda-related files directories, packages, and cache.<\/p>\n<pre>$ anaconda-clean \u2013yes<\/pre>\n<p>Also, use the below command to remove the anaconda directory from the Home directory:<\/p>\n<pre>$ rm -rf ~\/anaconda3<\/pre>\n<p>In this post, we explained step by step procedure for the installation of Anaconda on Ubuntu OS. We also explained how to uninstall Anaconda. You can check Anaconda&#8217;s official <a href=\"https:\/\/docs.anaconda.com\/anaconda\/install\/linux\/\">documentation<\/a> for further information.<\/p>","protected":false},"excerpt":{"rendered":"<p>Anaconda is an open-source distribution of Python which includes some installation and package management utilities. It assists you in installing some popular Python and additional packages.. Anaconda has&hellip;<\/p>","protected":false},"author":1,"featured_media":9284,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[481],"class_list":["post-9257","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-anaconda"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9257","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=9257"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/9257\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/9284"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=9257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=9257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=9257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}