-
-

Getting started with Mambaforge and Python#

+
+

Getting started with ~~Mamba~~*Miniforge and Python#

Mara Lampert, January 26th, 2023

-
-

Introduction to Python and Mamba#

-

This blog post explains what Python and Mamba/ Mambaforge, and how you can download and setup it on your computer. We will also go through some steps how to get started with Bio-image Analysis.

+

updated by Stefan Hahmann, December 18th, 2023

+

(*) 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.

+
+

Introduction to Python and Miniforge#

+

This blog post explains what Python and Mamba / Miniforge is, and how you can download and setup it on your computer. We will also go through some steps how to get started with Bio-image Analysis.

Note: This is an update of a previous Blogpost written by Johannes.

@@ -432,29 +434,29 @@

Introduction to Python and Mambahere.

-
-

Installation of Mambaforge#

-

Here, I am going to show how to install Mambaforge. It comes with everything you need and downloads it from a community-driven open source software provider called conda-forge. -First, you pick the Mambaforge installer for your operating system here:

-

+
+

Installation of Miniforge#

+

Here, I am going to show how to install Miniforge. It comes with everything you need and downloads it from a community-driven open source software provider called conda-forge. +First, you pick the Miniforge installer for your operating system here:

+

All Mac OS users can now jump here.

Installation on Windows#

-

When Mambaforge finished downloading, follow these steps during the installation:

+

When Miniforge finished downloading, follow these steps during the installation:

Click Next:

-

+

Click I Agree:

-

-

Now you have the option to either install Mambaforge for Just Me or for All Users. We highly recommend picking Just Me, as the other option requires Administrator priviledges and it can make installing packages more difficult later on.

-

-

Install Mambaforge into the default location:

-

-

In the next step we recommend to additionally tick Add Mambaforge to my Path. If you don’t add it to the Path, Conda and Mamba would not work from any Terminal Window. Click Install

-

+

+

Now you have the option to either install Miniforge3 for Just Me or for All Users. We highly recommend picking Just Me, as the other option requires Administrator priviledges and it can make installing packages more difficult later on.

+

+

Install Miniforge3 into the default location:

+

+

In the next step we recommend to additionally tick Add Miniforge3 to my Path. If you don’t add it to the Path, Conda and Mamba would not work from any Terminal Window. Click Install

+

Click Next at the next window and you arrive here. Click Finish to exit the setup:

-

+

Great! You are ready to start coding! 👍 -To see how to use Mambaforge, jump here

+To see how to use Mamba, jump here

Installation on Mac OS#

@@ -463,22 +465,22 @@

Installation on Mac OSThe opened Terminal should look like this:

Then type these two lines to start the installation

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

You just follow the instructions, press Enter and type yes like here:

+

You just follow the instructions, press Enter and type yes like here:

When you see this:

you are finished! Close and reopen the Terminal now. Happy coding! 👍

-
-

Using Mambaforge#

-

Now we use Mambaforge by opening the command line. If you are not familiar with the command line yet, you can check out Roberts tutorial here.

+
+

Using Mamba#

+

Now we use Mamba by opening the command line. If you are not familiar with the command line yet, you can check out Roberts tutorial here.

To open the Command Prompt in Windows, press the Windows button, type cmd and press Enter. The Mac OS users should already know how to open the Terminal ;-)

When you open the command line, it should look like this:

@@ -486,7 +488,7 @@

Using Mambaforgehere. If this happens in any environment apart from the base environment it is no problem. You can delete the environment, recreate it and start again. If this happens in the base environment, you need to delete and reinstall Mambaforge.

+

The reason for this is that incompatibilities between packages can occur. Robert demonstrated this here. If this happens in any environment apart from the base environment it is no problem. You can delete the environment, recreate it and start again. If this happens in the base environment, you need to delete and reinstall Miniforge.

Creating a new environment#

@@ -572,7 +574,7 @@

Deactivation or Deletion of an environment -

Now you have Mambaforge installed, know how to work with conda environments and know about some very important packages. Have fun starting your own Bio-image Analysis project! 👍

+

Now you have Miniforge installed, know how to work with conda environments and know about some very important packages. Have fun starting your own Bio-image Analysis project! 👍


@@ -644,13 +646,13 @@

Deactivation or Deletion of an environment