Source: https://gometry.monicz.dev/installation/

# Installation

Install gometry from PyPI on CPython 3.11–3.15, including free-threaded CPython
3.14t and 3.15t.

**uv**

```bash
uv add gometry
```

**pip**

```bash
pip install gometry
```

## Requirements

| Requirement | Detail |
| --- | --- |
| Python | See the [supported runtimes and wheel families](https://gometry.monicz.dev/about/compatibility/#runtime-and-platform-matrix). |
| Runtime dependencies | **[NumPy](https://numpy.org/).** `typing-extensions>=4.15` is also installed when Python is below 3.15. |
| Self-contained wheels | Everything needed for geometry and CRS transforms is included — no system libraries to install. |
| CPU | **x86\_64: x86-64-v2** (roughly 2009 or newer); **arm64: native arm64.** |

On x86\_64, importing a wheel checks detectable baseline features before loading
the native extension. If required features are missing, `ImportError` names
them and recommends an x86-64-v2-capable CPU. When the operating system cannot
report CPU features, the check does not block import.

Wheels bundle PROJ and its CRS database. To add regional transformation grids,
see [Transformation resources](https://gometry.monicz.dev/guide/crs/#transformation-resources).
Linux wheels cover both glibc and musl systems, including Alpine with musl 1.2
or newer. Optional integrations can require source builds when their dependencies
do not provide matching wheels; see [optional integration compatibility](https://gometry.monicz.dev/about/compatibility/#optional-integration-matrix).

## Optional extras

Install the extras for the integrations you use. They are imported only when
needed.

| Extra | Purpose |
| --- | --- |
| `arrow` | [`to_arrow`](https://gometry.monicz.dev/api/geometry/#gometry.Geometry.to_arrow "to_arrow") / [`gm.from_arrow`](https://gometry.monicz.dev/api/io/#gometry.from_arrow "from_arrow") [PyArrow](https://arrow.apache.org/docs/python/) materialization and [GeoParquet](https://geoparquet.org/) I/O |
| `pandas` | concrete extension storage via [`arr.to_pandas()`](https://gometry.monicz.dev/api/geometry-array/#gometry.GeometryArray.to_pandas "to_pandas"), [`features.to_pandas()`](https://gometry.monicz.dev/api/features/#gometry.Features.to_pandas "to_pandas"), and [`gm.from_pandas()`](https://gometry.monicz.dev/api/interop/#gometry.from_pandas "from_pandas") for [pandas](https://pandas.pydata.org/) |
| `polars` | WKB/EWKB Binary Series and DataFrames via [`arr.to_polars()`](https://gometry.monicz.dev/api/geometry-array/#gometry.GeometryArray.to_polars "to_polars"), [`features.to_polars()`](https://gometry.monicz.dev/api/features/#gometry.Features.to_polars "to_polars"), and [`gm.from_polars()`](https://gometry.monicz.dev/api/interop/#gometry.from_polars "from_polars") for [Polars](https://pola.rs/) |
| `geopandas` | vectorized `GeoSeries` / `GeoDataFrame` conversion for [GeoPandas](https://geopandas.org/) via [`to_geopandas`](https://gometry.monicz.dev/api/interop/#gometry.to_geopandas "to_geopandas") and [`Features.to_geopandas`](https://gometry.monicz.dev/api/features/#gometry.Features.to_geopandas "to_geopandas") |
| `viz` | interactive [lonboard](https://developmentseed.org/lonboard/) maps via [`gm.explore`](https://gometry.monicz.dev/api/interop/#gometry.explore "explore") (geometries, features, cells) and `GeometryArray._repr_html_`; built-in SVG/HTML notebook previews need no extras |

For example, add PyArrow support with:

**uv**

```bash
uv add "gometry[arrow]"
```

**pip**

```bash
pip install "gometry[arrow]"
```

Geometry objects also expose Arrow PyCapsules without PyArrow installed.
[Arrow & storage](https://gometry.monicz.dev/ecosystem/arrow/) covers both interfaces.

## Verify and start coding

Confirm your install and run your first geographic query:

```python
import gometry as gm

station = gm.Point(2.2945, 48.8584, space=gm.Space(crs=4326))
corridor = station.buffer(500)
print("area m²:", round(corridor.area))
```

```text
area m²: 783767
```

## Next steps

- **[Quickstart](https://gometry.monicz.dev/quickstart/)** — walk through a complete runnable example:
  buffering a station, loading GeoJSON features, querying a
  [`SpatialIndex`](https://gometry.monicz.dev/api/spatial-index/#gometry.SpatialIndex "SpatialIndex"), and covering the area with H3 cells.
- **[The mental model](https://gometry.monicz.dev/mental-model/)** — understand how CRS frames, planar
  topology, and discrete grid keys fit together.
- **[User guide](https://gometry.monicz.dev/guide/)** — jump straight to code examples for
  predicates, overlays, CRS transforms, and arrays.
- **[Migrating to gometry](https://gometry.monicz.dev/migrating/)** — adapt
  [Shapely](https://shapely.readthedocs.io/),
  [pyproj](https://pyproj4.github.io/pyproj/),
  [h3-py](https://uber.github.io/h3-py/),
  [s2sphere](https://s2sphere.readthedocs.io/), and
  [rtree](https://rtree.readthedocs.io/) workflows.
