Installation Guide
Pre-Installation
Before you can install the software, you must first have a working Python distribution with a package manager. For all platforms we recommend that you download and install Anaconda - a professional grade, full-blown scientific Python distribution.
To set up Anaconda, you should:
Download and install Anaconda (Python 3.x version, 64 bit installer is recommended) from https://www.continuum.io/downloads
Update the root Anaconda environment (type in a terminal):
>> conda update --allActivate the Anaconda root environment in a terminal as follows:
>> activate
It is recommended to create a new environment to install TOPFARM if you have other Python programs. This ensures that the dependencies for the different packages do not conflict with one another. In the command prompt, create and active an environment with:
conda create --name topfarm "python<3.12"
conda activate topfarm
Simple Installation
TOPFARM’s base code is open-sourced and freely available on GitLab (MIT license).
Install from PyPi.org (official releases):
pip install topfarm
Install from GitLab (includes latest updates, use with caution as it may contain bugs):
pip install git+https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2.git
If your workflow requires tensorflow, you can install TOPFARM with an extra:
pip install topfarm[tensorflow]
Developer Installation
We highly recommend developers to install TOPFARM into the environment created previously. The commands to clone and install TOPFARM with developer options into the current active environment in an Anaconda Prompt are as follows:
git clone https://gitlab.windenergy.dtu.dk/TOPFARM/TopFarm2.git
cd TopFarm2
pip install -e .
Please install pre-commit hooks to ensure that your code is formatted correctly and passes all linting tests. This can be done by running the following command:
pip install pre-commit
pre-commit install