Installation¶
Requirements¶
| Requirement | Version |
|---|---|
| Python | 3.10 – 3.12 |
| Operating System | Windows 10+, macOS 12+, Linux (Ubuntu 22.04+) |
System dependencies
gmsh ships as a self-contained Python wheel on all major platforms — no separate gmsh installation is required.
Install from PyPI (recommended)¶
Verify the installation:
elementa --version # prints version and exits (if supported)
python -c "import elementa; print(elementa.__version__)"
Install from Source¶
The [dev] extra installs ruff and pytest for development.
Virtual Environment (recommended)¶
Platform Notes¶
Linux¶
On headless servers, a virtual display is required for the Qt GUI:
sudo apt-get install libgl1-mesa-glx libglib2.0-0
# If no display server is available:
pip install PyVirtualDisplay
macOS¶
On Apple Silicon, install Rosetta 2 if the gmsh wheel does not yet have a native arm64 build:
Windows¶
Ensure you are using a 64-bit Python distribution. The Microsoft Visual C++ redistributable is required (usually already present).