4 Install Anaconda
Anaconda provides a comprehensive platform for data related projects by including Python and many essential data science libraries.
4.1 Download the Installer
- Go to the Anaconda Downloads page.
- Select your operating system (for macOS, choose the appropriate Graphical installer - if your machine has an Apple chip, choose M1)
- Download the installer. Make sure to download the graphical installer.
4.2 Installation Guide
4.2.1 Windows
- Right-click the downloaded installer and choose “Run as administrator.
- Click “Next” to continue through the setup screens.
- Agree to the terms and conditions.
- Choose the installation type:
- “Just Me” (recommended) or “All Users.”
- Select the destination folder for the installation.
- Important step: Check “Add Anaconda to my PATH environment variable” (optional but recommended).
- Check “Register Anaconda as my default Python” (recommended).
- Click “Install” and wait for the installation to complete.
- Click “Next” and then “Finish” to complete the installation.
4.2.2 macOS
- Locate the downloaded
.pkg
file and double-click to start the installation. - Follow the prompts to complete the installation:
- Read and accept the license agreement.
- Choose the target disk for the installation.
- Click “Install.”
- Once the installation is complete, close the installer.
4.2.3 Linux
Open a terminal window and navigate to the directory where the
.sh
installer is downloaded.Run the installer using the command:
bash Anaconda3-<your-version>-Linux-x86_64.sh
Follow the prompts to accept the license agreement and choose the installation location.
The installer will ask whether to initialize Anaconda in your
.bashrc
file. Type “yes.”Close the terminal and open a new one to ensure Anaconda is properly initialized.
4.3 Verify Installation
To confirm Anaconda has been successfully installed: 1. Open a command prompt (Windows) or terminal (macOS/Linux).
Run this command to verify Anaconda is recognized:
conda --version
If Anaconda is installed correctly, you’ll see the version printed in the terminal.
4.4 Initial Update
After installation, it’s a good idea to update all default packages:
conda update --all
Follow any prompts to complete the update.
With Anaconda installed, you’re ready to start creating environments, managing packages, and working with data. The next step would be setting up your first Anaconda environment.