Miniforge

Install Miniforge

Miniforge is a lightweight installer that sets up Conda to install packages from conda-forge, a robust environment for data science and machine learning workflows.

Go to the conda-forge website and download the latest version of Miniforge for your operating system.

Verify installation

After installation, open a command prompt/terminal and check if Conda is installed:

Terminal/Command Prompt
conda --version

Create a new environment

Open a command prompt or terminal. Use the following command to create an environment named training with Python 3.12, Jupyter Lab, Jupyter Notebook, Pandas and Scikit-Learn:

Terminal/Command Prompt
conda create -n training python=3.12 jupyterlab pandas seaborn scikit-learn

This installs all specified packages in one command.

If you need to install additional packages, use conda install. For example, to install scipy type:

Terminal/Command Prompt
conda install -n training scipy

Activate the environment

To activate the newly created environment type:

Terminal/Command Prompt
conda activate training

The terminal prompt will change to show (training) indicating the environment is active.

Last, launch Jupyter Lab by typing:

Terminal/Command Prompt
jupyter lab

The Jupyter Lab interface should open on your local web browser:

Screenshow of the JupyterLab interface

We’re now ready to get started!

Continue with the course