Installation#
The recommended way to install pyrosm is by using the conda package manager:
$ conda install -c conda-forge pyrosm
Pyrosm is also distributed via PyPI and can be installed with pip:
$ pip install pyrosm
Pyrosm supports Python 3.10–3.14.
Optional dependencies for graph export#
Exporting street networks to a graph (see Working with graphs) needs the backend you want to use installed:
$ pip install igraph networkx pandarm
Troubleshooting#
Pyrosm has a few dependencies (GeoPandas, Shapely, Cython, Protobuf and Cykhash) that need to be successfully installed before Pyrosm works. Most of these libraries are easy to install and Pyrosm handles them automatically when installing with pip. On Linux and Mac, pip installation should work out of the box.
However, on Windows, installing GeoPandas with pip can cause issues. Hence, it is recommended to install GeoPandas before installing pyrosm. See instructions from the GeoPandas website.