Installation#
Requirements#
pyGuidos requires Python 3.8 or higher and the following dependencies, which are installed automatically with pip:
Package |
Minimum Version |
Purpose |
|---|---|---|
numpy |
1.24 |
Array operations |
rasterio |
1.3 |
GeoTIFF reading and writing |
scipy |
1.9 |
Connected component labelling |
matplotlib |
3.5 |
Histogram and ternary plot generation |
fiona |
1.9 |
Shapefile reading |
shapely |
2.0 |
Geometry validation and reprojection |
pyproj |
3.4 |
Coordinate reference system handling |
python-ternary |
1.0 |
Ternary diagram rendering |
Installation#
- Standard Installation (not yet available)
Install the latest stable release from PyPI:
$ pip install pyguidos
- Git Installation
To install the latest development version directly from the repository:
$ pip install git+https://code.europa.eu/jrc-forest/guidos/pyguidos.git
- Git Editable Installation
If you want to use the notebooks and contribute or modify the source code, clone the repository and install in editable mode:
$ git clone https://code.europa.eu/jrc-forest/guidos/pyguidos.git $ cd pyguidos $ pip install -e .
To use the notebooks:
$ cd notebooks $ jupyter notebook
Configuration (Execution Workspace)#
pyGuidos relies on high-performance C++ binaries. These require a workspace folder with execution permissions.
By default, pyGuidos attempts to use:
1. A work/ folder in your project root (if using a Git clone).
2. A pyguidos_work/ folder in your user home directory.
Important
If your system (e.g., a corporate Windows laptop) restricts execution in the Home or AppData folders, you must manually set a “safe” workspace.
Run the built-in setup tool to configure your workspace:
$ pyguidos-setup
Follow the prompts to provide a path (e.g., D:/pyguidos_work). The tool will test the folder and save the configuration.
Verify Installation#
After installation, verify everything is working correctly:
import pyguidos
print(pyguidos.__version__)
print(f"Workspace: {pg.WORK_DIR}")
Platform Support#
pyGuidos is tested and supported on:
OS |
Architecture |
|---|---|
Linux |
x86_64, ARM64 |
macOS |
x86_64, ARM64 (Apple Silicon) |
Windows |
x86_64 |
Note
The underlying GuidosToolbox binaries (MSPA, Spatcon) are platform-specific and are bundled automatically with the package for all supported platforms.
Troubleshooting#
- Execution Blocked Error
If you receive a permission error when running a tool like
mspa(), your currentWORK_DIRdoes not allow binary execution. Runpyguidos-setupto move the workspace to a non-restricted drive.- Installation stalls on downloading packages
You may be behind a corporate proxy. Try:
$ pip install --proxy http://your-proxy:port pyguidos
- Import error after installation
Ensure your
pipmatches your active Python version:$ python -m pip show pyguidos