Skip to content

Environment Setup

Tony Chan edited this page Dec 12, 2024 · 1 revision

Windows Environment Setup Guide

This guide will walk you through setting up the development environment for the BGL Meal Identification project on Windows.

Prerequisites

1. Install Chocolatey Package Manager

If Chocolatey is not installed, follow these steps:

  1. Open PowerShell as Administrator (right-click PowerShell and select "Run as Administrator")
  2. Run the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  1. Close and reopen PowerShell as Administrator to complete the installation

2. Install Make

  1. Open PowerShell as Administrator
  2. Run:
choco install make

3. Install Conda

  1. Download Miniconda from: https://docs.conda.io/en/latest/miniconda.html
  2. Run the installer (.exe file)
  3. During installation:
    • Select "Add Miniconda to my PATH environment variable" (or add it manually)
  4. Close and reopen PowerShell after installation
  5. Verify installation by running:
conda --version

Project Setup

1. Clone the Project

git clone [project-repository-url]
cd bgl-meal-identification/meal_identification

2. Create Conda Environment

make create_environment

3. Create meal_identification environment

conda activate meal_identification

Verify activation by running:

conda info

4. Download required packages

make requirements