Hey there! Looking to install Anaconda on your Linux system? As a fellow data science enthusiast, I‘m excited to share this ultimate guide to help you get Anaconda up and running.
Anaconda is hands down one of the most useful Python and R distributions for data science and machine learning. But getting it installed properly can be tricky if you aren‘t familiar with Linux.
Not to worry – I‘ve been using Anaconda on Linux for years, and over time I‘ve learned the ins and outs of installation. In this guide, I‘ll share everything I wish I knew when starting out.
Here‘s what we‘ll cover:
- What Anaconda is and why it‘s so popular for data science
- Choosing the right Anaconda version to download
- Step-by-step installation walkthrough
- Verifying installation and next steps
- Troubleshooting common issues
Plus I‘ll share my personal recommendations, experiences, and analysis throughout the article.
Let‘s get started!
What is Anaconda?
Anaconda is an open source distribution that includes Python, R, and hundreds of useful packages for data science, machine learning, and scientific computing.
It was created by Continuum Analytics (now Anaconda Inc) back in 2012 to help simplify the package management experience for Python data science.
Some of the main components and features of Anaconda include:
-
Conda: Package, dependency, and environment manager for Python and R. Allows you to install packages, create isolated environments, and manage dependencies for different projects.
-
Python and R: Latest versions of Python and R included and managed by conda.
-
250+ Pre-installed Packages: NumPy, Pandas, Matplotlib, SciPy, Scikit-Learn, Jupyter, and many more useful data science packages.
-
Anaconda Navigator: GUI desktop application to easily launch apps like JupyterLab and manage conda environments.
-
Anaconda Prompt: Interface to use conda from the terminal.
-
Spyder: Python IDE included.
-
Jupyter Notebook and JupyterLab: Interactive development environments.
Anaconda basically provides everything you need to start developing data science and machine learning applications with Python and R on Linux.
The pre-installed packages lower the barrier to getting started, while conda simplifies managing software dependencies – something that can be painful on Linux.
According to Anaconda‘s 2021 State of Data Science survey, over 17 million data scientists use Anaconda. It has quickly become the standard data science platform on Linux.
As a data analyst myself, here are the main reasons I use Anaconda on a daily basis:
- No need to install data science packages one-by-one – they come pre-bundled.
- Conda solves dependency hell and makes it easy to switch between isolated environments.
- Anaconda Navigator provides a nice GUI for managing everything.
- Open source and free.
- Available cross-platform on Linux, Windows, and macOS.
- Large ecosystem of conda packages.
Overall, Anaconda streamlines the workflow for building Python and R data science applications on Linux. Next let‘s look at how to install it.
Choosing the Right Anaconda Version to Download
Anaconda offers a few different download options to choose from. Let‘s break down the options:
Python Version:
Anaconda is available with either Python 3.9 or Python 3.10. I recommend Python 3.9 given it‘s the more tested and stable release. Most libraries support it.
Linux Distribution:
Make sure to choose the installer for your Linux distribution – whether it‘s Ubuntu, Fedora, CentOS, Debian, or another distro.
Architecture:
Select the 64-bit x86 installer unless you have a specific reason to use the 32-bit version. Most modern Linux installations are 64-bit.
Installer Type:
You can choose between the stable release or installing a development build. I suggest starting with the latest stable release to ensure maximum compatibility.
Installer Script vs GUI Installer:
Anaconda offers both a graphical installer and a command line installer script for Linux. I prefer using the script which gives you more control over the process.
Based on the criteria above, the best option is likely the Anaconda3-20XX.XX-Linux-x86_64.sh script with Python 3.9 and your Linux distro.
As an example, here is the installer script for Ubuntu 22.04:
Anaconda3-2022.10-Linux-x86_64.sh
Now let‘s see how to download and run this script to install Anaconda.
Step-by-Step Guide to Installing Anaconda on Linux
Here is a step-by-step walkthrough of installing Anaconda via the command line installer script:
1. Download the Installer Script
First, browse to the Anaconda download page and select the installer script for your system.
I recommend downloading into your ~/Downloads directory in your home folder:
cd ~/Downloads
Use wget to download the script into this location:
wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
Be sure to replace the URL with the installer for your system if different.
2. Run the Anaconda Script
Make the script executable and then run it with bash:
chmod +x Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
Sit back and watch the installer run!
3. Follow the Prompts
The installer will be interactive – it will first prompt you to read through and agree to the Anaconda license agreement.
Use the SPACEBAR to scroll through the license and enter yes if you agree to the terms to continue.
Next, you‘ll be prompted to confirm or change the installation location.
Anaconda3 will now be installed into this location:
/home/<username>/anaconda3
- Press ENTER to confirm the location
- Press CTRL-C to abort the installation
- Or specify a different location below
[/home/<username>/anaconda3] >>>
Hit ENTER to accept the default location in your home folder.
Finally, once the process completes, enter yes when asked if you wish to initialize Anaconda:
Do you wish the installer to initialize Anaconda3
by running conda init? [yes|no]
[no] >>> yes
This will configure your shell to automatically run Anaconda commands.
4. Close and Re-open Terminal
After the installer finishes, close and re-open your Linux terminal for the changes to take effect.
When you open a new terminal window, you should now see a (base) environment in your prompt meaning you are in the default Anaconda environment.
5. Verify Installation
To verify Anaconda installed correctly, run the following in your terminal:
conda --version
You should see the conda version:
conda 4.12.0
Next check the Python version:
python --version
It should show the Anaconda Python version:
Python 3.9.12
If you see the above, Anaconda has been successfully installed!
You can also launch the Anaconda Navigator GUI:
anaconda-navigator
This will open Navigator if installed correctly:

Congratulations – you now have Anaconda ready to use on Linux!
Recommended Next Steps
Here are some recommended next steps after getting Anaconda set up:
- Browse pre-installed packages with Navigator
- Launch JupyterLab and create a notebook
- Use
condato create and manage new environments - Install additional packages like Tensorflow or PyTorch with
conda install - Try out the Spyder IDE for Python
- Look into installing useful JupyterLab extensions
Also, be sure to spend some time learning how to use conda. It will be very beneficial for managing packages and environments.
The Managing Environments guide in the conda docs is a great place to start.
Troubleshooting Common Anaconda Installation Issues
If you run into any errors during the install process, here are some common issues with fixes:
Downloader Issues:
If you have problems downloading the installer script, try using curl instead of wget. Some systems may have one but not the other.
Old Python Versions:
If you already had Python installed and Anaconda isn‘t running the latest version, try rebooting your system after installing Anaconda.
Permissions Errors:
Use sudo when running the installer script if you get any permission related errors.
Environment Issues:
Double check that you initialized Anaconda and closed/reopened your terminal window. This configures the environment.
Corrupted Download:
Try re-downloading the installer script and comparing checksum hashes before running to spot a corrupted download.
Other Issues:
Search the Anaconda forums and StackOverflow where many common problems are already covered.
Hopefully these tips help you troubleshoot any potential roadblocks during installation! Reach out in the comments if you have any other issues.
Final Thoughts
Getting Anaconda successfully installed on your Linux system is a major step forward in your data science journey. It provides all the tools you need to start building Python and R applications for machine learning and statistical modeling.
I hope this step-by-step installation guide was helpful for getting up and running with Anaconda on Linux! I wanted to not only provide the key steps, but also share my insight and experiences gathered from using Anaconda daily for years.
Let me know if you have any other questions down in the comments! I‘m always happy to provide tips to fellow data science practitioners.
Happy learning!