7.2. Installation
pftools can be installed using pip. This installs our latest stable release with
fully-supported features:
pip install pftools
If you would like to set up a virtual environment to install pftools, execute the following commands:
python3 -m venv py-env
source py-env/bin/activate
pip install pftools
Alternatively, you can create a conda environment and install pftools as follows (you
can choose a more recent version of Python if desired):
conda create -n py-env python=3.13
conda activate py-env
pip install pftools
7.2.1. For developers
Developers and users who need optional tooling can install with the [all] extras:
pip install pftools[all]
Note
On macOS, quote the extras specifier to avoid a shell error:
pip install 'pftools[all]'
The [all] extras install every optional dependency group below (solid-file
helpers, PDI/HDF5 support, and developer tooling):
[pfsol]: installs theimageiopackage for image processing used in some workflows that build ParFlow solid (.pfsol) files.[pdi]: installs theh5pypackage for HDF5 / PDI-related workflows.[dev]: installs developer tooling (twine,black, andgersemi) used for packaging and code formatting.