Installation Guide¶
This guide walks you through installing FMU Manipulation Toolbox on your system.
System Requirements¶
Supported Operating Systems¶
- ✅ Windows 10/11 (primary platform, fully tested)
- ✅ Linux (Ubuntu 22.04 and compatible distributions, with glibc 2.35 or newer)
- ✅ macOS (Darwin)
Required Dependencies¶
- Python 3.10 or higher (see Supported Python Versions)
- pip (Python package manager); pip 21.3 or higher for an installation from source in development mode
Optional Dependencies (for compilation from source)¶
- C Compiler with C23 support (for the container) or C99 (for remoting)
- Windows: Visual Studio 2022+ or MinGW
- Linux: GCC 11+ or Clang 16+
- macOS: Xcode Command Line Tools (with recent Clang)
- CMake 3.25 or higher
Optional Dependencies (to compile the sources of an FMU)¶
The Compile sources operation (fmutool -compile-sources) needs a C compiler for the current platform (CMake is not needed):
- Windows: Visual Studio or its Build Tools, with the Desktop development with C++ workload
- Linux:
cc(e.g.sudo apt-get install build-essential), or the compiler given byCC/CXX - macOS: Xcode Command Line Tools (
xcode-select --install)
See Compile Sources.
Method 1: Installation via PyPI (Recommended)¶
This is the simplest and fastest method to install FMU Manipulation Toolbox.
Standard Installation¶
This installs the CLI (fmutool, fmucontainer, fmusplit, datalog2pcap) and the Python API. It does not pull in the GUI toolkit (PySide6), which is a heavy dependency only needed by the graphical tools.
Installation with the Graphical User Interfaces¶
If you also want to use fmutoolbox, fmutool-gui, fmueditor or fmucontainer-gui, install the gui extra:
Installation with the AI Assistant (MCP server)¶
The toolbox can expose its FMU Container assembly capabilities to an AI agent through an MCP server, either as a standalone command (fmutool-mcp, no GUI needed) or from the Container Builder window. This optional feature requires the fastmcp package, available through the mcp extra:
# Standalone MCP server only (no GUI)
pip install "fmu-manipulation-toolbox[mcp]"
# MCP server + the graphical tools
pip install "fmu-manipulation-toolbox[gui,mcp]"
Which install do I need?
- CLI / Python API only (scripting, CI/CD, servers):
pip install fmu-manipulation-toolbox - GUI tools (interactive use):
pip install "fmu-manipulation-toolbox[gui]" - AI Assistant alone (MCP server for Claude Desktop, VS Code, ...):
pip install "fmu-manipulation-toolbox[mcp]" - GUI tools + AI Assistant (MCP server):
pip install "fmu-manipulation-toolbox[gui,mcp]"
Installation with Upgrade¶
Installing a Specific Version¶
Verify Installation¶
# Check installed version
pip show fmu-manipulation-toolbox
# Test CLI commands
fmutool -h
fmucontainer -h
# Test GUI commands (requires the `gui` extra, see above)
fmutoolbox # Launcher with all GUI tools
fmutool-gui # FMU analysis & modification
fmueditor # FMU variable editor
fmucontainer-gui # FMU container builder
# Test the MCP server (requires the `mcp` extra)
fmutool-mcp --help
Expected Output (excerpt):
Name: fmu_manipulation_toolbox
Version: 1.9.4.2
Summary: FMU Manipulation Toolbox is a python package which helps to analyze, modify, validate, combine or split ...
License-Expression: BSD-2-Clause
Note
The version is displayed without the V prefix of the git tags (V1.9.4.2 → 1.9.4.2). A package installed from a git checkout gets a development version computed from the last tag, e.g. 1.9.4.3.dev79+g230faf6.
Method 2: Installation from Source¶
This method is recommended if you want to: - Contribute to the project - Use the latest development version - Modify the source code
Step 1: Clone the Repository¶
Step 2: Install the Package and its Dependencies¶
This installs the package in development mode (see Step 4) with all its extras:
| Extra | Contents |
|---|---|
| (none) | xmlschema, elementpath, colorama: CLI and Python API |
gui | PySide6: graphical tools |
mcp | fastmcp, uvicorn: MCP server and AI Assistant |
test | pytest, pytest-qt, pytest-cov, anybadge, fmpy, numpy, PySide6 |
lint | ruff, mypy, types-colorama: static checks of the sources (see CONTRIBUTING.md) |
all | gui + lint + mcp + test |
The dependencies and their versions are declared in pyproject.toml.
Note
pip install -r requirements.txt is equivalent: the file only contains -e .[all]. The package must be installed to run the tests: they import the installed fmu_manipulation_toolbox.
Step 3: Compile C Components¶
Two native components are written in C and should be compiled. Both require a C23 compatible compiler; the remoting code also needs a compiler able to produce 64-bit and 32-bit objects. The binaries are written to fmu_manipulation_toolbox/resources/<platform>/ (win32, win64, linux32, linux64 or darwin64).
The CMakeLists.txt at the root of the repository builds both components (container/ and remoting/). Their build settings are shared, located in the cmake/ folder at the root of the repository. The builds of each platform are described by CMake presets (CMakePresets.json), the ones used by the CI. Each preset has its own build folder, build-native/<preset>:
| Preset | Host | Binaries |
|---|---|---|
win64 | Windows | container and remoting, 64-bit |
win32 | Windows | remoting, 32-bit |
linux64 | Linux | container and remoting, 64-bit |
linux32 | Linux | remoting, 32-bit (needs a 32-bit toolchain, e.g. gcc-multilib) |
darwin64 | macOS | container (the remoting code is not supported on macOS) |
linux64-sanitize | Linux | container, with AddressSanitizer and UndefinedBehaviorSanitizer (see Native runtime of the container) |
From the root of the repository, one command configures, builds and runs the native tests of the container (container/tests) for a platform:
cmake --list-presets lists the presets of the host. All the binaries of an OS need one command per preset, e.g. win64 then win32 on Windows, linux64 then linux32 on Linux.
The build type defaults to Release. The following options can be given at configuration time:
cmake --preset <preset> -D<option>=<value>
cmake --build --preset <preset>
ctest --preset <preset> # presets that build the container
| Option | Default | Description |
|---|---|---|
FMUTOOL_WARNINGS_AS_ERRORS | OFF | Treat compiler warnings as errors |
FMUTOOL_STRICT_CONVERSION | OFF | Warn about implicit conversions (-Wconversion, -Wsign-conversion) |
FMUTOOL_PGO | OFF | Profile-Guided Optimization: OFF, GENERATE or USE (see below) |
FMUTOOL_SANITIZE | OFF | GCC and Clang only: build with AddressSanitizer and UndefinedBehaviorSanitizer |
BUILD_TESTING | ON | Build the native tests of the container (container_tests) |
BUILD_32 | OFF | Linux only: build 32-bit binaries (set by the linux32 preset) |
FMUTOOL_BUILD_CONTAINER | ON | Build the container runtime |
FMUTOOL_BUILD_REMOTING | ON | Build the remoting client and server |
Profile-Guided Optimization
- Configure with
-DFMUTOOL_PGO=GENERATEand build. The binaries are instrumented and write profile data to<build folder>/pgo-data/when they run. - Run a representative simulation with these binaries.
- With Clang only, merge the profiles:
llvm-profdata merge -output=pgo-data/default.profdata pgo-data/*.profraw. - Reconfigure with
-DFMUTOOL_PGO=USEand rebuild.
Step 4: Install the Package¶
Development Mode Installation (changes take effect immediately)¶
Requires pip 21.3 or higher (editable installation of a pyproject.toml project). Skip this step if you ran pip install -e ".[all]" at step 2.
# CLI/API only
pip install -e .
# With GUI and/or test dependencies
pip install -e ".[gui]"
pip install -e ".[gui,test]"
# With the AI Assistant (MCP server)
pip install -e ".[gui,mcp]"
Standard Installation¶
Installation in a Virtual Environment (Recommended)¶
Using a virtual environment avoids dependency conflicts.
With venv (Python standard)¶
# Create virtual environment
python -m venv fmu_env
# Activate environment
# On Windows:
fmu_env\Scripts\activate
# On Linux/macOS:
source fmu_env/bin/activate
# Install FMU Manipulation Toolbox
pip install fmu-manipulation-toolbox
# Deactivate environment (when done)
deactivate
With conda¶
# Create environment
conda create -n fmu_env python=3.10
# Activate environment
conda activate fmu_env
# Install FMU Manipulation Toolbox
pip install fmu-manipulation-toolbox
# Deactivate environment
conda deactivate
Troubleshooting Installation Issues¶
Issue: pip install fails¶
Error: error: Microsoft Visual C++ 14.0 or greater is required
Windows Solution: 1. Install Visual Studio Build Tools 2. Or install a pre-compiled version: pip install fmu-manipulation-toolbox --only-binary :all:
Linux Solution:
macOS Solution:
Issue: Commands not found after installation¶
Solution:
Verify that the Python scripts directory is in your PATH:
# Find the directory
python -m site --user-base
# Add to PATH
# Windows: Add %APPDATA%\Python\Python3X\Scripts
# Linux/macOS: Add ~/.local/bin to your PATH
Issue: Permission denied (Linux/macOS)¶
Solution:
# Option 1: User installation
pip install --user fmu-manipulation-toolbox
# Option 2: With sudo (not recommended)
sudo pip install fmu-manipulation-toolbox
Updating¶
Check Available Version¶
# Check current installed version
pip show fmu-manipulation-toolbox
# Check latest version on PyPI:
# https://pypi.org/project/fmu-manipulation-toolbox/
Update to Latest Version¶
Downgrade to Previous Version¶
Uninstallation¶
For complete uninstallation (with dependencies):
pip uninstall fmu-manipulation-toolbox xmlschema elementpath colorama
# If you installed the `gui` and/or `test` extras, also remove:
pip uninstall PySide6 fmpy
# If you installed the `mcp` extra (AI Assistant), also remove:
pip uninstall fastmcp
Supported Python Versions¶
| Python Version | Support |
|---|---|
| 3.9 | ❌ Not supported: version 1.9.4.2 at most |
| 3.10 | ✅ Supported |
| 3.11 | ✅ Supported |
| 3.12 | ✅ Supported |
| 3.13 | ✅ Supported (Recommended) |
| 3.14 | ✅ Supported |
Python 3.9
Python 3.9 reached its end of life in October 2025. Version 2.0 requires Python 3.10 or higher; on Python 3.9, pip install fmu-manipulation-toolbox automatically installs 1.9.4.2, the last release supporting it.
Next Steps¶
Now that FMU Manipulation Toolbox is installed, you can:
- 🚀 Follow the Getting Started Guide
- 📖 Consult the CLI Usage Guide
- 🎨 Discover the Graphical Interface
- 🐍 Explore the Python API
Need Help?¶
If you encounter installation issues:
- Check the Troubleshooting Guide
- Review GitHub Issues
- Create a new issue with your system details and error message