pyramids-core ships self-contained platform wheels on PyPI that bundle
the GDAL/OGR/PROJ/GEOS native libraries. pip install pyramids-core
works out of the box on Linux, macOS, and Windows — no system GDAL
installation required.
Package name: pyramids-core
Supported Python versions: 3.11–3.15 (requires >=3.11,<4;
3.12+ on Windows ARM64)
!!! note "Renamed from pyramids-gis"
The PyPI distribution was renamed pyramids-gis → pyramids-core. The import name is unchanged — it
is still import pyramids. pyramids-gis lives on as a thin deprecated alias: pip install pyramids-gis
still works (it just depends on the matching pyramids-core release), so existing pins keep resolving, but an
installed pyramids-gis now emits a FutureWarning on import pyramids telling you to switch to
pyramids-core. Install pyramids-core for new work. The conda-forge package name is unchanged
(conda install -c conda-forge pyramids).
pip install pyramids-coreThat's it. The wheel includes GDAL 3.13 (3.12 on Windows ARM64), PROJ,
GEOS, HDF5, NetCDF, GRIB, JPEG2000 (OpenJPEG, for JP2-packed GRIB2),
libtiff, and all other native dependencies (HDF4 additionally ships in
the macOS and Windows x64 wheels). No gdal-config, no
apt install libgdal-dev, no OSGeo4W installer needed.
viz:cleopatra[tiles](plotting + basemap tiles via mercantile / xyzservices / Pillow)- there is no
lazyextra. The lazy/dask implementation is a separate distribution,pyramids-lazy, discovered through thepyramids.compute_backendentry point — the same shape aspyramids-eo,pyramids-meshandpyramids-citymodels. Install it directly withpip install pyramids-lazy; it brings the dask / distributed / zarr / fsspec / kerchunk / h5py stack as its own dependencies. The lazy vector path additionally needspip install "pyramids-lazy[parquet]". Until it is installed, every lazy operation raises a branded error naming that command. - the optional labeled-array interop (
DatasetCollection.to_netcdf,NetCDF.from_xarray/to_xarray) is not a pyramids extra — pyramids is GDAL-backed, so the labeled-array library is a peer. Install it directly (pip install xarray) when you want those helpers. parquet: pyarrow, for eager GeoParquet I/O (read_parquet/to_parquet, which go through pyarrow and geopandas and need no backend). The lazy vector path (LazyFeatureCollection,backend="dask") additionally needs dask-geopandas, which ships inpyramids-lazy[parquet]— not here. Note thatiter_features()over a.parquetis a third, separate thing: it streams through GDAL/OGR and so needs GDAL's OGR Parquet driver, which no pyramids wheel bundles. See GDAL driver plugins for what works on which install path.dev: nbval, pre-commit, pytest, coverage, build, twine, etc.docs: mkdocs, mkdocs-material, mkdocstrings, mike, etc.
pip install "pyramids-core[viz]" # plotting
pip install pyramids-lazy # dask-backed chunked I/O (the lazy backend)
pip install "pyramids-lazy[parquet]" # + the lazy vector path (dask-geopandas)
pip install "pyramids-core[viz]" pyramids-lazy # a core extra plus the backend
pip install xarray # optional interop dependency (peer dep, not an extra)conda install -c conda-forge pyramidsconda-forge gets native GDAL via conda itself (not bundled in the package). Use this if you're already in a conda/mamba environment.
pixi add --pypi pyramids-corepyramids-core ships its Linux wheels tagged manylinux_2_28 (GDAL and
its native stack are compiled from source with the manylinux toolchain).
pixi picks a wheel at lock time against a declared baseline, and
pixi's default Linux baseline is glibc 2.28 (it tracks conda-forge's
floor). Because the wheel tag equals the default baseline, the wheel
resolves out of the box — no system-requirements entry is needed
(verified against pixi 0.65 defaults — newer versions, including the
0.68.1 this repo pins in CI, share the same baseline; rasterio's 2_28
wheels resolve the same way).
One situation still needs a declared baseline in the consuming
project's pyproject.toml (or pixi.toml):
-
You run an older pixi whose default Linux baseline predates the 2.28 floor — declare
libc = "2.28"(satisfied by Ubuntu 20.04+, Debian 11+, RHEL 8+, Amazon Linux 2023):[tool.pixi.system-requirements] libc = "2.28"
Every pyramids-core release ships manylinux_2_28 wheels (glibc) and
musllinux_1_2 wheels (Alpine/musl); none is tagged manylinux_2_39, so no
libc = "2.39" pin is ever needed.
It only affects Linux; macOS and Windows are unaffected. If you'd rather
avoid the topic entirely, install pyramids-core from conda-forge instead
(pixi add --channel conda-forge pyramids), which gets native GDAL via
conda and has no manylinux tag to match.
Open Python and run:
import pyramids
from osgeo import gdal
print(pyramids.__version__)
print(gdal.__version__) # should print 3.13.x (3.12.x on Windows ARM64)| Platform | Architecture | Wheel tag | Status |
|---|---|---|---|
| Linux (glibc ≥ 2.28) | x86_64 | manylinux_2_28_x86_64 |
✅ Supported |
| Linux (glibc ≥ 2.28) | aarch64 | manylinux_2_28_aarch64 |
✅ Supported |
| Linux (glibc < 2.28) | any | — | ❌ Fall back to conda |
| macOS 11+ | x86_64 | macosx_11_0_x86_64 |
✅ Supported (Python 3.15 needs macOS 15+; see gaps) |
| macOS 11+ | arm64 (Apple Silicon) | macosx_11_0_arm64 |
✅ Supported |
| Windows 10+ | x64 | win_amd64 |
✅ Supported |
| Windows 11+ | ARM64 | win_arm64 |
✅ Supported (Python 3.12+; see the ARM64 note below) |
| Alpine (musl) | x86_64, aarch64 | musllinux_1_2_* |
✅ Supported (self-contained; vendors the vector stack) |
Distros covered by the Linux wheel out of the box:
- Ubuntu 20.04 LTS and newer
- Debian 11 (bullseye) and newer
- RHEL / Rocky / Alma Linux 8 and newer
- Amazon Linux 2023
- Fedora 38 and newer
- Arch Linux (rolling)
If your distro has glibc < 2.28, use the conda-forge path instead.
Every remaining gap waits on something upstream of pyramids; none of them can be closed from this repo alone. Free-threaded builds are tracked in #683. Until a row clears, the workaround column applies. (Alpine / musl and Python 3.15 used to sit here; both now ship — see the matrix above.)
| Platform / target | Why no wheel today | Ships when | Workaround |
|---|---|---|---|
Free-threaded (cp31Nt) |
GDAL sdist's SWIG is 4.2.0 (< 4.4, no nogil) | GDAL sdist (#683) | standard (GIL) build |
| macOS < 15 Intel, Python 3.15 | pyproj's cp315 Intel wheel needs macOS 15 | upstream pyproj | 3.14 or conda-forge |
| Linux glibc < 2.28 | below the oldest maintained manylinux image | never (intentional) | conda-forge |
| PyPy / Python ≤ 3.10 | GDAL bindings target CPython 3.11+ | never (intentional) | CPython 3.11+ |
One feature-level difference inside covered platforms: the Linux and Windows ARM64 wheels do not include the HDF4 driver (the macOS wheels — both architectures — and the Windows x64 wheel do). HDF4 is a legacy format; if you need it there, use conda-forge. This is the only driver difference — the wheel pipeline asserts the full promised driver set on every build, so drivers cannot silently disappear from a release.
Windows ARM64 note: the
win_arm64wheel ships Python 3.12–3.15 (numpy/scipy publish no cp311 ARM64 wheels), carries GDAL 3.12.4 (the pinned vcpkg port version; the other platforms ship 3.13.3), has no HDF4 driver (like Linux), and vendors its vector stack — shapely, geopandas, and pyogrio ship inside the wheel underpyramids/_vendor/because upstream publishes no ARM64 wheels for them.import geopandasetc. work normally afterimport pyramids; the vendored copies disappear once upstream ships ARM64 wheels. On Python 3.11 there is no wheel and pip falls back to the sdist, which typically fails while trying to build numpy/scipy from source (they ship no cp311 ARM64 wheels either) — and even a forced install (--no-deps) provides neither GDAL nor the vector stack, because the dependency markers skip shapely/geopandas on Windows ARM64. Use Python 3.12+ or conda-forge instead. The same caveat applies to any deliberate sdist install on Windows ARM64.
Alpine / musl note: the musllinux wheel uses the same self-bundling as win_arm64 — it vendors shapely, geopandas, and pyogrio (and additionally cftime, which has no
musllinux_*_aarch64wheel upstream) underpyramids/_vendor/, and strips them from the wheel metadata so a plainpip install pyramids-coreon Alpine resolves and imports with no external build and no GDAL system install. It is built and verified on real x86_64 and aarch64 Alpine in CI on every release, and it publishes to PyPI alongside the other platforms (#333).
The wheel bundles nearly everything (expat is linked statically into the
bundled GDAL). The only system dependencies are standard C runtime
libraries that every Linux distro — including python:*-slim Docker
images — ships out of the box:
libc.so.6,libm.so.6,libpthread.so.0,libdl.so.2(glibc)libgcc_s.so.1,libstdc++.so.6(GCC runtime)
No system packages need to be installed — pip install pyramids-core
works on a bare python:3.12-slim image as-is.
For contributing to pyramids-core, use pixi (which manages GDAL via conda-forge for development):
git clone https://github.com/serapeum-org/pyramids-core.git
cd pyramids
pixi install -e dev
pixi run -e dev pip install -e .
pixi run -e dev main # runs the main test suitePixi environments available:
| Environment | Purpose |
|---|---|
dev |
Default development env (includes viz + interop + test tooling) |
docs |
Documentation toolchain (mkdocs + plugins) |
py311, py312, py313, py314, py315 |
Single-Python-version test envs |
wheel-build |
Minimal env used by cibuildwheel to obtain native GDAL |
If you're not using pixi and want to install from source, you'll need the native GDAL library available at configure time (because the sdist does not include it — only the PyPI wheel does).
# 1. Install native GDAL via your system package manager first
# (see Platform-specific: no wheel available below)
# 2. Then install pyramids-core from source
git clone https://github.com/serapeum-org/pyramids-core.git
cd pyramids
pip install .If you're on a platform we don't ship a wheel for (e.g., glibc < 2.28, PyPy, Python ≤ 3.10), pip will try to build pyramids-core from the sdist. That requires a pre-installed native GDAL:
sudo apt update
sudo apt install gdal-bin libgdal-dev
pip install pyramids-coresudo dnf install gdal gdal-devel
pip install pyramids-corebrew install gdal
pip install pyramids-coreUse conda or pixi — installing GDAL natively on Windows is impractical.
Latest main:
pip install "git+https://github.com/serapeum-org/pyramids-core.git"A specific tagged release:
pip install "git+https://github.com/serapeum-org/pyramids-core.git@<version>"Note: this installs from the sdist, not a wheel, so the same pre-installed-native-GDAL caveat applies.
See troubleshooting.md for common install and runtime issues.
pyramids-core is licensed under GPLv3. The platform wheels published on
PyPI bundle GDAL and its native dependencies — PROJ, GEOS, libtiff,
libgeotiff, NetCDF-C, HDF5, OpenJPEG, libcurl, OpenSSL, libpng,
libjpeg-turbo, libwebp, zlib / libdeflate / zstd / liblzma, and more
(macOS/Windows additionally bundle HDF4 and libxml2 via the conda-forge
build) — each under its own MIT, BSD, LGPL, or Apache license.
The full license text for every bundled library ships inside the wheel
under pyramids/_licenses/<package>/ and stays bound to that wheel even
when it's redistributed. A human-readable index of what's bundled and
the SPDX identifier for each component lives in
THIRD_PARTY_LICENSES.md
under docs/about/.
If you redistribute a pyramids-core platform wheel — directly or as
part of a larger product — the MIT / BSD / LGPL / Apache attribution
notices in pyramids/_licenses/ must travel with it. The practical
way to satisfy this is to leave that directory untouched inside the
wheel.
The sdist does not bundle any third-party binaries (you build your own GDAL out-of-band), so none of the above applies to sdist installs; only platform wheels carry the bundled native libraries and the corresponding attribution obligation.
If you use pyramids-core in academic or publication contexts, please
also cite GDAL itself per
gdal.org/cite_gdal.html. Pyramids
stands on GDAL's shoulders — that project deserves the credit.
- Documentation: https://serapeum-org.github.io/pyramids-core/latest
- Source: https://github.com/serapeum-org/pyramids-core
- PyPI: https://pypi.org/project/pyramids-core/
- conda-forge: https://anaconda.org/conda-forge/pyramids
- Third-party licenses: https://github.com/serapeum-org/pyramids-core/blob/main/docs/about/THIRD_PARTY_LICENSES.md
- GDAL upstream: https://gdal.org