Installation

You can install the latest release of osm2gmns at PyPI via pip:

pip install osm2gmns

By running the command above, the osm2gmns package along with three required dependency packages (Shapely, osmium, and numpy) will be installed to your computer (if they have not been installed yet).

Potential Issues

  • Shapely

If you install osm2gmns in a conda environment, you may get an error message: “OSError: [WinError 126] The specified module could not be found” when importing osm2gmns. To resolve this issue, you need to uninstall the Shapely package first, and reinstall it manually using the command below.

conda install shapely
  • osmium

Windows users may get an error message related to osmium (one of the dependency packages of osm2gmns) when installing or using osm2gmns with Python version > 3.8. The reason is the highest Python version that osmium supports on PyPI is Py3.8 for Windows.

Affected users can download binary wheels of osmium from our repository or osmium github homepage and use pip to install the wheel file that matches your Python version.