What Anaconda is and why you need it
Anaconda is a package manager and environment tool that bundles Python with hundreds of pre-installed libraries for data science, machine learning, and scientific computing. Instead of installing Python and then hunting down each library separately, Anaconda gives you everything in one download. It also lets you create separate workspaces (called environments) so different projects can use different versions of the same tool without breaking each other.
If you are starting with Python for data work, Anaconda saves you hours of setup headaches. If you already have Python installed, Anaconda can coexist with it without conflict.
Key Takeaways
- Download the Anaconda installer from anaconda.com, choosing the version that matches your operating system and whether you want the full suite or the lightweight Miniconda version.
- Run the installer and accept the default installation location unless you have a specific reason to change it.
- After installation, open Anaconda Navigator (the graphical launcher) or use the command line to verify the installation worked.
- Create a new environment for each project so you can install different package versions without affecting other work.
- Most beginners should start with the full Anaconda installer rather than Miniconda, since it includes Jupyter Notebook and common data libraries out of the box.
Download the right version for your computer
Go to anaconda.com and look for the download button. You will see options for Windows, Mac, and Linux. Choose the one that matches your operating system. You will also see two choices: the full Anaconda installer (about 500 MB) or Miniconda (about 50 MB). Anaconda includes Jupyter Notebook, pandas, NumPy, and other common libraries already installed. Miniconda is just Python and the package manager, so you install only what you need. Start with the full Anaconda installer unless disk space is tight.
You will also see a choice between Python 3.11 and Python 3.12 (or newer). Either works for most projects. Pick the most recent version unless you know a specific library requires an older one.
Install on Windows
Open the installer file you downloaded (it will be named something like Anaconda3-2024.02-Windows-x86_64.exe). Click through the welcome screen. When you reach the installation type screen, choose "Just Me" unless you are setting this up for multiple users on the same computer.
The next screen asks where to install Anaconda. The default location (usually C:\Users\YourName\anaconda3) is fine. Do not change it unless you have a specific reason. Click Next, then on the Advanced Options screen, leave both checkboxes unchecked. This prevents Anaconda from becoming your default Python, which can cause problems if you have other Python installations. Click Install and wait — this takes a few minutes.
When installation finishes, you will see a checkbox to launch Anaconda Navigator. Check it and click Finish. Navigator is the graphical interface where you can launch Jupyter Notebook, create environments, and manage packages without typing commands.
Install on Mac
Open the installer file (it will be named something like Anaconda3-2024.02-MacOSX-arm64.pkg for Apple Silicon Macs, or x86_64 for Intel Macs). Click Continue through the introduction and license agreement. When asked where to install, the default location (/Users/YourName/anaconda3) is correct.
On the installation type screen, choose "Install for me only" unless you are setting this up for multiple users. Complete the installation and wait for it to finish. After installation, open Terminal (search for it in Spotlight) and type conda --version to verify it installed correctly. You should see a version number like "conda 24.1.2".
To launch Anaconda Navigator, open Terminal and type anaconda-navigator, or search for Navigator in Spotlight and click it.
Install on Linux
Open Terminal and navigate to the folder where you downloaded the installer. Type bash Anaconda3-2024.02-Linux-x86_64.sh (replace the filename with the one you downloaded). Press Enter and read through the license agreement. Type "yes" when asked if you accept the terms.
When asked where to install, press Enter to accept the default location (/home/YourName/anaconda3). When asked if you want to initialize Anaconda, type "yes". This adds Anaconda to your PATH so you can use conda commands from any terminal window. Close Terminal and open a new one, then type conda --version to verify the installation worked.
Verify the installation and launch Jupyter Notebook
Open Anaconda Navigator (on Windows and Mac, search for it in your applications; on Linux, type anaconda-navigator in Terminal). You should see a window with tiles for Jupyter Notebook, JupyterLab, Spyder, and other tools. Click the Launch button under Jupyter Notebook. A browser window will open showing your file system. This is where you write and run Python code.
If you prefer the command line, open Terminal (Mac/Linux) or Anaconda Prompt (Windows) and type jupyter notebook. The same browser window will open. You can now create a new notebook by clicking New in the top right and selecting Python 3.
Create a new environment for your first project
Environments are separate workspaces where you can install different package versions without affecting your main installation. In Anaconda Navigator, click the Environments tab on the left. Click Create at the bottom. Name your environment something like "myproject" and make sure Python is selected. Click Create and wait a moment for it to build.
Once created, click the arrow next to your new environment name and select "Open Terminal". This opens a terminal window where any packages you install will go into this environment only. Type conda install pandas numpy matplotlib to install common data science libraries. Type "y" when asked to confirm. You can now use these packages in Jupyter Notebook by making sure you are running the notebook from this environment (you will see the environment name in the Jupyter kernel selector).
Frequently Asked Questions
Do I need to uninstall Python before installing Anaconda?
No. Anaconda can coexist with a separate Python installation. However, if you want Anaconda to be your default Python, you should uninstall the other version first to avoid confusion about which one your code is using.
What is the difference between Anaconda and Miniconda?
Anaconda includes Python, conda, and about 250 pre-installed packages like Jupyter, pandas, and NumPy. Miniconda includes only Python and conda, so you install packages as you need them. Anaconda is easier for beginners; Miniconda saves disk space and is faster to download.
Why does the installer ask me not to add Anaconda to PATH?
If you have another Python installation, adding Anaconda to PATH makes Anaconda your default Python everywhere. This can break code that depends on the other Python version. Use Anaconda Prompt (Windows) or activate an environment in Terminal (Mac/Linux) instead to keep them separate.
How do I know which version of Mac installer to download?
Click the Apple menu and select About This Mac. Look at the Chip line. If it says Apple Silicon or M1/M2/M3, download the arm64 version. If it says Intel, download the x86_64 version. Downloading the wrong one will not break anything, but it will run slowly.
Can I delete the installer file after installation is complete?
Yes. Once Anaconda is installed, you do not need the installer file anymore. You can delete it to free up disk space.