- install
conda
using the distribution of your choice (Anaconda, miniconda, miniforge, etc.). If you don't know what to choose, we recommend miniforge. All should work as long as you have access to theconda
executable in a fresh terminal. You can test it by running the following in a terminal:
conda info
- Clone this repo and create the environment to use for the semester.
git clone https://github.com/PREDICT-EPFL/mpc2025public
cd mpc2025public
conda create -n mpc2025 python=3.12 pip
conda activate mpc2025
pip install -r locked-requirements.txt
If the locked-requirements.txt
changes, pull the latest version of this repo, activate the environment again and simply reinstall the dependencies:
git pull
conda activate mpc2025
pip install -r locked-requirements.txt
If you have uv
installed locally you can run
uv pip compile requirements.txt -o locked-requirements.txt --emit-find-links --universal --python-version 3.12
if not, you can simply manually trigger the lock requirements
workflow on your branch, which will automatically relock the dependencies and push the changes if there are some.