{"id":3925,"date":"2019-03-27T19:02:40","date_gmt":"2019-03-27T13:32:40","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=3925"},"modified":"2026-10-12T13:08:49","modified_gmt":"2026-10-12T07:38:49","slug":"steps-to-setup-python-anaconda-in-centos","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/steps-to-setup-python-anaconda-in-centos\/","title":{"rendered":"How to Install Anaconda on a Linux Server: Step-by-Step Guide"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong><strong>Post Dat<\/strong>e:<\/strong> March 27, 2019<br><strong>Last Updated:<\/strong> October 12, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Anaconda is a popular open-source distribution for Python and R, widely used in data science, machine learning, artificial intelligence, and scientific computing. It simplifies package management and environment configuration by providing tools to install, manage, and run Python libraries and applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Installing<a href=\"https:\/\/docs.conda.io\/projects\/conda\/en\/stable\/user-guide\/install\/linux.html\" target=\"_blank\" rel=\"noopener\"> Anaconda<\/a> on a Linux server allows developers and data scientists to create isolated environments, manage dependencies, and run data processing or machine learning workloads efficiently.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will walk through the steps to download, install, configure, and verify Anaconda on a Linux server using the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Prerequisites<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Linux server with SSH access.<\/li>\n\n\n\n<li>A user account with appropriate installation permissions.<\/li>\n\n\n\n<li>An active internet connection.<\/li>\n\n\n\n<li>Sufficient disk space for Anaconda and its packages.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> CentOS 6 and CentOS 7 are no longer supported. For a new installation, use a currently supported Linux distribution and an Anaconda installer compatible with your system.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installation flowchart<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"683\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux-1024x683.png\" alt=\"\" class=\"wp-image-12237\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux-1024x683.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux-300x200.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux-768x512.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux-272x182.png 272w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/03\/Anaconda-Installation-Flowchart-on-Linux.png 1536w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step-by-Step Installation Procedure<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Connect to the Linux Server<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to your server using SSH.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssh username@server_ip<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>username<\/code> and <code>server_ip<\/code> with your actual server credentials and IP address.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create an Installation Directory<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a directory under <code>\/root<\/code> to store the downloaded installer.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir -p \/root\/anac\ncd \/root\/anac<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Download the Anaconda Installer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Visit the official Anaconda distribution page:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-anaconda wp-block-embed-anaconda\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"LwHwm9ODL7\"><a href=\"https:\/\/www.anaconda.com\/download\" target=\"_blank\" rel=\"noopener\">Free Download<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201cFree Download\u201d \u2014 Anaconda\" src=\"https:\/\/www.anaconda.com\/download\/embed#?secret=cFPeNAUYlk#?secret=LwHwm9ODL7\" data-secret=\"LwHwm9ODL7\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Select the Linux installer that matches your system architecture and preferred installation method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, download the appropriate installer directly from the official Anaconda distribution repository. Use the current installer filename provided by the official source.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Verify the Downloaded Installer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">List the downloaded files:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ls -lh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the official source provides a SHA-256 checksum, verify the installer before executing it:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sha256sum Anaconda3-*.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Compare the output with the checksum published by the official source.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Run the Installer<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Execute the downloaded shell installer. Replace the filename with the actual installer name.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">bash Anaconda3-&lt;version>-Linux-x86_64.sh<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the installation prompts:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Review the license agreement.<\/li>\n\n\n\n<li>Accept the terms if you agree.<\/li>\n\n\n\n<li>Select the installation directory.<\/li>\n\n\n\n<li>Complete the installation.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid running the installer as root unless a system-wide installation is specifically required. For a personal installation, use your regular Linux user account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Initialize Anaconda<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After installation, initialize Conda for your shell:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">source ~\/anaconda3\/bin\/activate\nconda init bash<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Reload your shell configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">source ~\/.bashrc<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If you installed Anaconda in a different directory, adjust the path accordingly.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Verify the Installation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Check the installed Conda version:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conda --version<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the Python version:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python --version<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Display the Conda environments:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conda env list<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If these commands execute successfully, Anaconda is installed and ready to use.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Create a Separate Python Environment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create an isolated environment for your project:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conda create -n myproject python=3.12<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Activate the environment:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">conda activate myproject<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify Python:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python --version<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can now install project dependencies and run Python applications within this environment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Anaconda provides a convenient way to install Python, manage dependencies, and maintain isolated environments on Linux servers. By following this guide, you can install Anaconda, verify its configuration, and create a dedicated environment for your data science or machine learning projects.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For production servers, use a supported operating system, download installers only from trusted official sources, and keep project dependencies isolated. These practices help improve reliability, security, and maintainability.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. What is Anaconda used for?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anaconda is used to manage Python and R packages and environments for data science, machine learning, scientific computing, and application development.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Can I install Anaconda on a Linux server without a graphical interface?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes. Anaconda can be installed through SSH using its command-line shell installer, so a graphical desktop is not required.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3. What is the difference between Anaconda and Conda?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Anaconda is a distribution that includes Python or R tools and packages. Conda is the package and environment manager used to install packages and create isolated environments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/python-script-to-take-amazon-volume-backup-of-an-instance\/\">Python script to take Amazon volume backup of an instance<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/python-script-to-take-backup-of-ec2-volume-with-days-retention\/\">Python Script to take backup of Ec2 Volume with days retention<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to our experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Have a technology challenge or looking for the right solution for your business? Our team can help you with <strong>cloud, DevOps, development, infrastructure, design, and more<\/strong>. Feel free to reach out to our experts <a href=\"https:\/\/pheonixsolutions.com\/contact\">here<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: March 27, 2019Last Updated: October 12, 2026 Introduction Anaconda is a popular open-source distribution for Python and R, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[595,596,415,292],"class_list":["post-3925","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-anaconda","tag-anaconda-installation","tag-centos-7","tag-python","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-11j","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=3925"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3925\/revisions"}],"predecessor-version":[{"id":12240,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/3925\/revisions\/12240"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=3925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=3925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=3925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}