Installation¶
Install from PyPI (Recommended)¶
The easiest way to install gmshparser is from the Python Package Index (PyPI):
This will install the latest stable release.
Install from GitHub (Development Version)¶
To install the latest development version directly from GitHub:
Install with Poetry¶
If you're using Poetry for dependency management:
Install with Optional Dependencies¶
If you want visualization support with matplotlib:
Verify Installation¶
After installation, verify that gmshparser is working correctly:
Or test the command-line interface:
Development Installation¶
If you want to contribute to gmshparser, clone the repository and install in development mode:
# Clone the repository
git clone https://github.com/ahojukka5/gmshparser.git
cd gmshparser
# Install with Poetry (recommended)
poetry install
# Or install with pip in editable mode
pip install -e .
System Requirements¶
Minimum Requirements¶
- Python 3.8.1 or later
- pip or Poetry
Recommended Setup¶
- Python 3.10 or later
- Virtual environment (venv, conda, or Poetry)
Optional Dependencies¶
- matplotlib (>=3.5, <3.11): For mesh visualization
- mkdocs (>=1.6): For building documentation (development only)
Troubleshooting¶
Python Version Issues¶
If you see errors about Python version, ensure you're using Python 3.8.1 or later:
Permission Errors¶
If you encounter permission errors during installation, try:
Or use a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install gmshparser
Import Errors¶
If you can install but can't import the package, check that you're using the correct Python environment:
Upgrading¶
To upgrade to the latest version:
Uninstalling¶
To remove gmshparser: