Loading...

Conda (Miniforge)

Package and environment manager for Python and scientific software

Research Infrastructure & Reproducibility Essential Core Tool
Quick Info
  • Category: Research Infrastructure & Reproducibility
  • Level: Essential
  • Type: Core Tool

Why We Recommend Conda (Miniforge)

Conda makes it easy to install scientific Python packages and manage isolated environments. Miniforge uses conda-forge by default, giving access to the latest community-maintained packages. It solves the notorious 'dependency hell' problem in scientific computing.

Common Use Cases

  • Install complex scientific packages (NumPy, SciPy, pandas)
  • Create isolated environments for different projects
  • Ensure reproducibility by locking dependency versions
  • Manage Python versions across projects

Getting Started

Conda is a package manager that simplifies the installation of scientific software. It helps in creating isolated environments for different projects, ensuring reproducibility and preventing dependency conflicts.

Why Conda?

  • Solves Dependencies: Automatically resolves and installs all package dependencies
  • Environment Isolation: Keep different projects separate with their own package versions
  • Cross-Platform: Works consistently across Windows, macOS, and Linux
  • Scientific Focus: Optimized for data science and research computing packages

Installation

We recommend installing Miniforge, which includes conda and uses conda-forge as the default channel.

  1. Download Miniforge from the official website
  2. Run the installer for your operating system
  3. Follow the installation prompts
  4. Restart your terminal/command prompt

Getting Started

Create a new environment:

conda create -n myenv python=3.11
conda activate myenv

Install packages:

conda install numpy pandas matplotlib

Best Practices

  • Use separate environments for different projects
  • Keep your base environment minimal
  • Export environment specifications for reproducibility: conda env export > environment.yml
  • Use conda-forge channel for the latest packages

Tips

  • List environments: conda env list
  • Remove environment: conda env remove -n myenv
  • Update packages: conda update --all
Top