Linux
1. Install Conda
If you do not already have Conda installed, we recommend installing Miniconda, a lightweight version of Anaconda.
- Go to the Anaconda download page and sign in or create an account if prompted.
- Open the Distribution section and download Miniconda for Linux.
- Run the installer in your terminal:
bash Miniconda3-latest-Linux-x86_64.sh
- Follow the instructions and restart your terminal when done.
To verify the installation, run:
conda --version
2. Install Git
If you do not already have Git installed, use your distribution’s package manager.
Ubuntu / Debian:
sudo apt update && sudo apt install git
Fedora:
sudo dnf install git
Arch:
sudo pacman -S git
3. Install VS Code
If you do not already have Visual Studio Code installed, please install it as your editor for the course.
- Go to the VS Code download page and download the installer for Linux (
.debfor Ubuntu/Debian,.rpmfor Fedora). - Follow the installation instructions and launch VS Code once complete.
4. Clone the Course Repository
- Open VS Code and click Clone Git Repository on the start screen.
- Enter the repository URL:
https://github.com/sib-swiss/federated-learning-training.git
- Choose a folder where you would like to save the course files and click Open once the download is complete.
5. Set Up the Environment
We provide a Conda environment file that installs all required packages for the course.
- Open VS Code and load the cloned
federated-learning-trainingfolder. - Open a terminal via Terminal > New Terminal and run:
conda env create -f fl-course-env.yaml
This may take a few minutes.
- Once complete, activate the environment:
conda activate fl-course-env
- Select the
fl-course-envinterpreter in VS Code if prompted.
Once activated, your terminal prompt should look like this:
(fl-course-env) your-name@your-computer federated-learning-training %