Skip to main content
Michael Wandzik

What is anaconda and how to use it?

michael 2 months ago

Anaconda is an open-source distribution of the Python and R programming languages, specifically designed for data science, machine learning, and scientific computing. It simplifies package management and deployment, making it a popular choice among data scientists, researchers, and developers working in data-intensive fields.

Advantages of Anaconda

  • Ease of Use: Anaconda simplifies the setup of data science environments, allowing users to quickly start working on projects without manually installing each package.
  • Community Support: Anaconda has a large community of users and developers, providing resources, tutorials, and forums for support and collaboration.
  • Integration with Popular Tools: Anaconda integrates seamlessly with tools like Jupyter Notebook and Spyder, enhancing the productivity and experience of data scientists.

To install Anaconda using the Anaconda installer, follow these steps for your operating system:

Windows Installation

  1. Download the Installer:
    • Visit the Anaconda website and download the Windows installer.
  2. Run the Installer:
    • Navigate to your Downloads folder and double-click the installer to launch it. Avoid launching it from the Favorites folder to prevent permission errors.
  3. Installation Process:
    • Click Next and read the licensing terms. Click I Agree.
    • Choose the installation type. It is recommended to install for Just Me to avoid needing administrator privileges.
    • Select the destination folder. Avoid directories with spaces or Unicode characters.
    • Decide whether to add Anaconda to your PATH environment variable. It is generally not recommended to avoid conflicts with other software. Instead, use Anaconda Navigator or Anaconda Prompt from the Start Menu.
    • Click Install and then Next once the installation is complete.
    • Optionally, explore Anaconda’s cloud notebook service or click Continue to finish.
  4. Finish Installation:
    • After installation, you will see a completion dialog. You can choose to view tutorials or additional resources, then click Finish.

macOS and Linux Installation

  1. Download the Installer:
    • Download the appropriate installer for macOS or Linux from the Anaconda website.
  2. Run the Installer:
    • Open a terminal window and navigate to the directory containing the downloaded installer.
    • Run the installer script:
      bash <INSTALLER-FILE>
    • Replace <INSTALLER-FILE> with the name of your downloaded installer file.
  3. Installation Process:
    • Follow the prompts in the terminal. You will need to review the license agreement and approve it.
    • Choose the installation location. The default location is usually recommended.
    • When prompted, allow the installer to initialize Anaconda3 by running 
      conda init.
  4. Complete Installation:
    • Once the installation is complete, close and reopen your terminal for the changes to take effect.

Post-Installation

  • Verify Installation: Open Anaconda Prompt (Windows) or a terminal (macOS/Linux) and run: conda list This will display a list of installed packages, confirming that Anaconda is installed correctly.
  • Create a New Environment: To create a new environment with a specific version of Python,
    run: conda create --name myenv python=3.8
    Replace myenv with your desired environment name and 3.8 with the Python version you need.

By following these steps, you can successfully install Anaconda on your system and start managing your Python environments with ease