xyzspaces has optional dependencies for its spatial functionality on a large geospatial, open source stack of libraries (Geopandas, turfpy, geobuf). See the Dependencies section below for more details. The C depedencies of Geopandas such as (GEOS, GDAL, PROJ) can sometimes be a challenge to install. Therefore, we advise you to closely follow the recommendations below to avoid installation problems.

Installing with Anaconda / conda

To install xyzspaces and all its dependencies, we recommend to use the conda package manager. This can be obtained by installing the Anaconda Distribution (a free Python distribution for data science), or through miniconda (minimal distribution only containing Python and the conda package manager). See also the installation docs for more information on how to install Anaconda or miniconda locally.

The advantage of using the conda package manager is that it provides pre-built binaries for all the required dependencies of xyzspaces for all platforms (Windows, Mac, Linux).

To install the latest version of xyzspaces from conda-forge, you can then do:

conda install -c conda-forge xyzspaces

Creating a new environment

Creating a new environment is not strictly necessary, but given that installing other geospatial packages from different channels may cause dependency conflicts (as mentioned in the note above), it can be good practice to install the geospatial stack in a clean environment starting fresh.

The following commands create a new environment with the name xyz_env, configures it to install packages always from conda-forge, and installs xyzspaces in it:

conda create -n xyz_env
conda activate xyz_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install python=3 xyzspaces

Installing with pip

Install xyzspaces without optional dependencies:

pip install xyzspaces

Install xyzspaces with optional dependencies:

pip install "xyzspaces[geo]"


When using pip to install xyzspaces, you need to make sure that all dependencies of Geopandas are installed correctly.

  • fiona provides binary wheels with the dependencies included for Mac and Linux, but not for Windows.

  • pyproj and shapely provide binary wheels with dependencies included for Mac, Linux, and Windows.

  • rtree does not provide wheels.

  • Windows wheels for shapely, fiona, pyproj and rtree can be found at Christopher Gohlke’s website.

So depending on your platform, you might need to compile and install their C dependencies manually. We refer to the individual packages for more details on installing those. Using conda (see above) avoids the need to compile the dependencies yourself.

Installing from source

You may install the latest development version by cloning the GitHub repository and using pip to install from the local directory:

git clone
cd xyz-spaces-python
pip install .

It is also possible to install the latest development version directly from the GitHub repository with:

pip install -e git+

For installing xyzspaces from source, the same note on the need to have all dependencies correctly installed applies.

See the section on conda above for more details on getting running with Anaconda.


Required dependencies:

Optional depedencies:

Dev dependencies: