Windows
1. Enable long Path in windows
Steps
- Open the terminal with admin rights
- Run the following command:
reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f
2. Install Conda
If you do not already have Conda installed, we recommend installing Miniconda, a lightweight version of Anaconda.
Steps
- Go to the Anaconda download page.
- Sign in or create an account if prompted.
- Open the Distribution section.
- Download Miniconda for your operating system.
- Run the installer and follow the instructions. During installation the checkbox Add miniconda to PATH must be toggled.
To verify that Conda was installed correctly, open a terminal and run:
conda init powershell
conda --version
This should display the installed Conda version number.
3. Install Git
If you do not already have Git installed, please install it.
Steps
- Go to the official Git download page.
- Download the installer.
- Follow the installation instructions for your platform.
4. Install VS Code
If you do not already have Visual Studio Code (VS Code) installed, please install it as your editor for the course.
Steps
- Go to the official VS Code download page.
- Download the installer for your operating system
- Follow the installation instructions for your platform.
- Launch VS Code once installation is complete.
To verify that VS Code was installed correctly, open the application successfully.
5. Clone the Course Repository
You will need a local copy of the course GitHub repository to access the course materials and the environment file.
Steps
- Open VS Code.
- On the start screen, click Clone Git Repository.
- When prompted, enter the repository URL:
https://github.com/sib-swiss/federated-learning-training.git
- Choose the folder where you would like to save the course files.
- Once the download is complete, click Open to open the repository in VS Code.
6. Set Up the Environment
We provide a Conda environment file that installs all required packages for the exercises.
Steps
- If it is not already open, open VS Code and load the cloned
federated-learning-trainingfolder. - Open a terminal in VS Code via Terminal > New Terminal
- Run the following command
conda env create -f fl-course-env.yaml
This may take a while.
- Once the installation is complete, activate the environment:
conda activate fl-course-env
- In VS Code, select the
fl-course-envinterpreter if prompted.
Once activated, your terminal prompt should show the environment name at the beginning of the command line, for example:
(fl-course-env) your-name@your-computer federated-learning-training %