Installing Python#

Alternative instructions for more experienced users#

Using the terminal#

The Anaconda Python distribution is optional, to make things easier for people with little Python experience. You can use any other installation of Python and just need to install the required packages. Assuming you have a working conda installation you can:

  • Download the environment file environment-2025-10.yml, then in a terminal window, navigate to the downloaded file and install the requirements by executing: conda env create -f environment-2025-10.yml

  • Run Jupyter Lab from a location of your choosing - this way you don’t have to manually navigate to the folder within Jupyter Lab: cd path/to/my/directory; conda activate optimisation-course; jupyter lab

If you prefer to manually configure your environment, this is the exact content of the downloadable environment-2025-10.yml file, showing you the packages it will install:

name: modelling-energy-systems-2025-10
channels:
    - conda-forge/label/calliope_dev
    - conda-forge
    - gurobi
dependencies:
    - python=3.12
    - matplotlib=3.10.5
    - seaborn=0.13.2
    - jupyterlab
    - glpk=5.0
    - ipopt=3.14.16
    - gurobi
    - calliope=0.7.0dev7
    - pyproj
    - pip
    - pip:
        - optimutils
        - calligraph==0.1.1.dev7

Using an editor#

If you prefer working with an editor rather than Jupyter Lab, you can still use the provided environment-2025-10.yml file to install all requirements.

Visual Studio Code#

See the official documentation on how to work with “conda” type Python environments.

PyCharm#

See the official documentation on configuring a conda virtual environment.