Convert Figma logo to code with AI

conda-forge logominiforge

A conda-forge distribution.

6,124
317
6,124
116

Top Related Projects

6,836

The Fast Cross-Platform Package Manager

39,014

Simple Python version management

22,999

C++ Library Manager for Windows, Linux, and MacOS

Quick Overview

Miniforge is a minimal installer for Conda, specifically designed for conda-forge. It provides a streamlined way to set up a Conda environment with packages from the conda-forge channel, which is a community-led collection of recipes, build infrastructure, and distributions for the conda package manager.

Pros

  • Lightweight and minimal installation compared to Anaconda
  • Focuses on conda-forge as the default channel, ensuring up-to-date and community-maintained packages
  • Supports multiple architectures, including x86_64 and ARM64
  • Includes Mamba, a fast, robust package solver alternative to Conda

Cons

  • May lack some packages or features available in the full Anaconda distribution
  • Requires more manual configuration for users who need specific packages not available in conda-forge
  • Less suitable for beginners who might benefit from Anaconda's more comprehensive default setup
  • Limited official support compared to Anaconda

Getting Started

  1. Download the appropriate Miniforge installer for your operating system from the GitHub releases page.
  2. Run the installer:
    • On Linux/macOS: bash Miniforge3-latest-Linux-x86_64.sh
    • On Windows: Double-click the .exe file
  3. Follow the prompts to install Miniforge.
  4. Initialize Conda in your shell:
    conda init
    
  5. Create and activate a new environment:
    conda create -n myenv python=3.9
    conda activate myenv
    
  6. Install packages using conda or mamba:
    conda install numpy pandas matplotlib
    # or
    mamba install numpy pandas matplotlib
    

Competitor Comparisons

6,836

The Fast Cross-Platform Package Manager

Pros of Mamba

  • Significantly faster package resolution and installation
  • Parallel downloading of repository data and packages
  • Written in C++, offering better performance than Conda's Python implementation

Cons of Mamba

  • Smaller ecosystem and community compared to Conda/Miniforge
  • May have fewer packages available in its default channels
  • Potential compatibility issues with some Conda-specific features

Code Comparison

Miniforge (Conda):

conda install numpy pandas scipy
conda env create -f environment.yml
conda update --all

Mamba:

mamba install numpy pandas scipy
mamba env create -f environment.yml
mamba update --all

Key Differences

  • Miniforge is a minimal Conda-based installer, while Mamba is a reimplementation of Conda's package manager
  • Miniforge focuses on providing a minimal Conda installation with conda-forge as the default channel
  • Mamba aims to improve Conda's performance and solve dependency conflicts more efficiently
  • Miniforge is more widely used and has better integration with existing Conda ecosystems
  • Mamba can be used as a drop-in replacement for Conda in most cases, offering speed improvements

Both projects aim to enhance the package management experience for data scientists and developers, with Mamba focusing on performance and Miniforge on providing a streamlined Conda installation.

39,014

Simple Python version management

Pros of pyenv

  • Lightweight and focused solely on Python version management
  • Allows easy switching between Python versions per project or globally
  • Supports installing Python versions from source, providing more flexibility

Cons of pyenv

  • Lacks built-in package management capabilities
  • Requires more manual setup for virtual environments and package installation
  • Limited to Python-only environments, unlike Miniforge's support for multiple languages

Code Comparison

pyenv:

pyenv install 3.9.5
pyenv global 3.9.5
python --version

Miniforge:

conda create -n myenv python=3.9.5
conda activate myenv
python --version

Summary

pyenv is a lightweight tool focused on managing Python versions, offering flexibility and easy switching between versions. It's ideal for developers who need precise control over Python installations but requires additional tools for package management.

Miniforge, based on conda, provides a more comprehensive solution with built-in package and environment management. It supports multiple languages and offers pre-configured environments, making it suitable for data science and scientific computing projects.

The choice between pyenv and Miniforge depends on specific project requirements, with pyenv excelling in Python version management and Miniforge offering a broader ecosystem for scientific computing and data analysis.

22,999

C++ Library Manager for Windows, Linux, and MacOS

Pros of vcpkg

  • Focused on C and C++ libraries, providing better support for native development
  • Integrates well with Visual Studio and other Microsoft development tools
  • Supports a wide range of platforms, including Windows, Linux, and macOS

Cons of vcpkg

  • Limited support for non-C/C++ languages and ecosystems
  • Smaller package repository compared to Miniforge's extensive collection
  • Steeper learning curve for users not familiar with C++ development environments

Code Comparison

Miniforge (using conda):

conda create -n myenv python=3.9
conda activate myenv
conda install numpy pandas

vcpkg:

vcpkg install boost:x64-windows
vcpkg integrate install

Summary

Miniforge is a community-driven distribution of Conda, focusing on providing a wide range of packages for data science and scientific computing across multiple programming languages. It offers a user-friendly experience for managing environments and dependencies.

vcpkg, on the other hand, is primarily designed for C and C++ developers, offering a streamlined way to manage libraries and dependencies for native development. It integrates well with Microsoft's development ecosystem but has a narrower focus compared to Miniforge's broader package offerings.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Miniforge

Build miniforge GitHub downloads

This repository holds the minimal installers for Conda and Mamba specific to conda-forge, with the following features pre-configured:

We put an emphasis on supporting various CPU architectures (x86_64, ppc64le, and aarch64 including Apple Silicon). Optional support for PyPy in place of standard Python interpreter (aka "CPython") is provided in the installers with -pypy3- in their filename.

Download

Miniforge installers are available here: https://github.com/conda-forge/miniforge/releases

Miniforge3

Latest installers with Python 3.12 (*) in the base environment:

OSArchitectureMinimum VersionDownload
Linuxx86_64 (amd64)glibc >= 2.17Miniforge3-Linux-x86_64
Linuxaarch64 (arm64) (**)glibc >= 2.17Miniforge3-Linux-aarch64
Linuxppc64le (POWER8/9)glibc >= 2.17Miniforge3-Linux-ppc64le
OS Xx86_64macOS >= 10.13Miniforge3-MacOSX-x86_64
OS Xarm64 (Apple Silicon) (***)macOS >= 11.0Miniforge3-MacOSX-arm64
Windowsx86_64Windows >= 7Miniforge3-Windows-x86_64

(*) The Python version is specific only to the base environment. Conda can create new environments with different Python versions and implementations.

(**) For Raspberry PI that include a 64 bit processor, you must also use a 64-bit operating system such as Raspberry Pi OS 64-bit or Ubuntu for Raspberry PI. The versions listed as "System: 32-bit" are not compatible with the installers on this website.

(***) Apple silicon builds are experimental and haven't had testing like the other platforms.

Miniforge-pypy3

Latest installers with PyPy 3.9 in the base environment:

OSArchitectureMinimum VersionDownload
Linuxx86_64 (amd64)glibc >= 2.17Miniforge-pypy3-Linux-x86_64
Linuxaarch64 (arm64)glibc >= 2.17Miniforge-pypy3-Linux-aarch64
Linuxppc64le (POWER8/9)glibc >= 2.17Miniforge-pypy3-Linux-ppc64le
OS Xx86_64macOS >= 10.13Miniforge-pypy3-MacOSX-x86_64
Windowsx86_64Windows >= 7Miniforge-pypy3-Windows-x86_64
🚨 Mambaforge (Deprecated as of July 2024) 🚨

Update for July 2024:

As of July 2024, Mambaforge is deprecated. We suggest users switch to Miniforge3 immediately. These installers will be retired from new releases after January 2025. To assist in the migration, we will be introducing rollowing brownouts to the latest Mambaforge installer. Installers up to version 24.5.0-1 will not have any brownouts. 24.5.0-1 will include a warning message. Installers 2024.5.0-2 and later will have the following brownout schedule:

  • The installer will refuse to proceed every two weeks in October
  • The installer will refuse to proceed every ten days in November
  • The installer will refuse to proceed every five days in December
  • The installer will refuse to proceed in 2025+

Previous information:

With the release of Miniforge3-23.3.1-0, that incorporated the changes in #277, the packages and configuration of Mambaforge and Miniforge3 are now identical. The only difference between the two is the name of the installer and, subsequently, the default installation directory.

We recommend switching to Miniforge3 immediately. These installers will be retired in January 2025. To assist in the migration to Miniforge3 for CI users, we've stopped the latest Mambaforge (24.5+) installer from proceeding with following schedule

  • Every two weeks in October
  • Every ten days in November
  • Every five days in December
  • Never in 2025

Mambaforge

Latest installers with Mamba in the base environment:

OSArchitectureDownload
Linuxx86_64 (amd64)Mambaforge-Linux-x86_64
Linuxaarch64 (arm64)Mambaforge-Linux-aarch64
Linuxppc64le (POWER8/9)Mambaforge-Linux-ppc64le
OS Xx86_64Mambaforge-MacOSX-x86_64
OS Xarm64 (Apple Silicon)Mambaforge-MacOSX-arm64
Windowsx86_64Mambaforge-Windows-x86_64

Mambaforge-pypy3

Latest installers with Mamba and PyPy in the base environment:

OSArchitectureDownload
Linuxx86_64 (amd64)Mambaforge-pypy3-Linux-x86_64
Linuxaarch64 (arm64)Mambaforge-pypy3-Linux-aarch64
Linuxppc64le (POWER8/9)Mambaforge-pypy3-Linux-ppc64le
OS Xx86_64Mambaforge-pypy3-MacOSX-x86_64
Windowsx86_64Mambaforge-pypy3-Windows-x86_64

Install

Unix-like platforms (Mac OS & Linux)

Download the installer using curl or wget or your favorite program and run the script. For eg:

curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

or

wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh

Uninstallation

Uninstalling Miniforge means removing the files that were created during the installation process. You will typically want to remove:

  1. Any modifications to your shell rc files that were made by Miniforge:
# Use this first command to see what rc files will be updated
conda init --reverse --dry-run
# Use this next command to take action on the rc files listed above
conda init --reverse
# Temporarily IGNORE the shell message
#       'For changes to take effect, close and re-open your current shell.',
# and CLOSE THE SHELL ONLY AFTER the 3rd step below is completed.
  1. Remove the folder and all subfolders where the base environment for Miniforge was installed:
CONDA_BASE_ENVIRONMENT=$(conda info --base)
echo The next command will delete all files in ${CONDA_BASE_ENVIRONMENT}
# Warning, the rm command below is irreversible!
# check the output of the echo command above
# To make sure you are deleting the correct directory
rm -rf ${CONDA_BASE_ENVIRONMENT}
  1. Any global conda configuration files that are left behind.
echo ${HOME}/.condarc will be removed if it exists
rm -f "${HOME}/.condarc"
echo ${HOME}/.conda and underlying files will be removed if they exist.
rm -fr ${HOME}/.conda

Windows

Download and execute the Windows installer. Follow the prompts, taking note of the options to "Create start menu shortcuts" and "Add Miniforge3 to my PATH environment variable". The latter is not selected by default due to potential conflicts with other software. Without Miniforge3 on the path, the most convenient way to use the installed software (such as commands conda and mamba) will be via the "Miniforge Prompt" installed to the start menu.

There are known issues with the usage of special characters and spaces in the installation location, see for example https://github.com/conda-forge/miniforge/issues/484. We recommend users install in a directory without any such characters in the name.

Non-interactive install

For non-interactive usage one can use the batch install option:

bash Miniforge3-Linux-x86_64.sh -b  # or similar for other installers for unix platforms

Look at the extra options by running the following:

bash Miniforge3-Linux-x86_64.sh -h

or if you are on windows, run:

start /wait "" Miniforge3-Windows-x86_64.exe /InstallationType=JustMe /RegisterPython=0 /S /D=%UserProfile%\Miniforge3

Downloading the installer as part of a CI pipeline

If you wish to download the appropriate installer through the command line in a more automated fashion, you may wish to a command similar to

For Linux, any architecture, use the following command

wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"

For MacOSX, any architecture, use the following command

curl -fsSLo Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-MacOSX-$(uname -m).sh"

This will download the appropriate installer for the present architecture with the filename Miniforge3.sh. Run the shell script with the command in batch mode with the -b flash:

bash Miniforge3.sh -b -p "${HOME}/conda"

-p is prefix option. A directory wil be created on "${HOME}/conda".

Then you should create the path to conda and activate conda. Run this command:

source "${HOME}/conda/etc/profile.d/conda.sh"
# For mamba support also run the following command
source "${HOME}/conda/etc/profile.d/mamba.sh"

Finally, you can run the command to activate the base environment

conda activate

Homebrew

On macOS, you can install miniforge with Homebrew by running

brew install miniforge

Usage

If Miniforge is on the system path (default on Mac and Linux), its versions of the conda and mamba programs can be used at any command prompt. The most notable difference is that the default channel for packages will be conda-forge.

On Windows, Miniforge is not added to the system path by default. In this case, conda/mamba cannot be used from ordinary command prompts without the full path of the executables, e.g. C:\Users\myusername\miniforge3\condabin\conda. Instead, it is recommended to use the Miniforge Prompt, available from the Start menu. If desired, the C:\Users\myusername\miniforge3\condabin folder may be added to the path environment variable manually after installation so the software may be used more conveniently from any command prompt with limited chance of software conflicts.

Features

  • Automatic build of constructor.
  • Automatic upload of constructor results.
  • Automatic testing of constructor.
  • Integration with conda-forge's developer documentation.
  • Integration with conda-forge's official site.
  • Upstream to Anaconda ?

Testing

After construction on the CI, the installer is tested against a range of distribution that match the installer architecture ($ARCH). For example when architecture is aarch64, the constructed installer is tested against:

  • Centos 7
  • Debian Bullseye (11)
  • Debian Bookworm (12)
  • Ubuntu 16.04 (LTS)
  • Ubuntu 18.04 (LTS)
  • Ubuntu 20.04 (LTS)
  • Ubuntu 22.04 (Latest release -- also happens to be LTS)

Building a Miniforge Installer

Installers are built and uploaded via the CI but if you want to construct your own Miniforge installer, here is how:

# Configuration
export ARCH=aarch64
export DOCKERIMAGE=condaforge/linux-anvil-aarch64

bash build_miniforge.sh

Support for older operating systems

Support for macOS 10.9-10.12

If you require support for macOS 10.9 through 10.12 you may download version 24.3.0-0 of miniforge available at https://github.com/conda-forge/miniforge/releases/tag/24.3.0-0

Support for glibc 2.12-2.16

If you require support for glibc 2.12 through 2.16 you may download version 24.3.0-0 of miniforge available at https://github.com/conda-forge/miniforge/releases/tag/24.3.0-0

FAQ

What's the difference between Mambaforge and Miniforge?

After the release of Miniforge 23.3.1 in August 2023, Miniforge and Mambaforge are essentially identical. The only difference is the name of the installer and subsequently the default installation path.

Before that release, Miniforge only shipped conda, while Mambaforge added mamba on top. Since Miniconda started shipping conda-libmamba-solver in July 2023, Miniforge followed suit and started shipping it too in August. At that point, since conda-libmamba-solver depends on libmambapy, the only difference between Miniforge and Mambaforge was the presence of the mamba Python package. To minimize surprises, we decided to add mamba to Miniforge too.

Should I choose one or another going forward at the risk of one of them getting deprecated?

Given its wide usage, there are no plans to deprecate Mambaforge. If at some point we decide to deprecate Mambaforge, it will be appropriately announced and communicated with sufficient time in advance.

That said, if you had to start using one today, we recommend to stick to Miniforge.

Release

To release a new version of Miniforge:

  • Make a new pre-release on GitHub with name $CONDA_VERSION-$BUILD_NUMBER
  • Wait until all artifacts are uploaded by CI
    • For each build, we upload 3 artifacts
      1. One installer with the version name
      2. One installer without the version name
      3. The SHA256
    • At the time of writing, the is a sum of 72 artifacts, and with the two sources, we expect a grand total of 74 artifacts.
  • Mark the pre-release as a release

NOTE: using a pre-release is important to make sure the latest links work.

License

BSD 3-Clause

History

Relevant conversations: