Geohash Module installed but import error

pip uninstall Geohash
pip install geohash2

it will install https://github.com/DBarthe/geohash version which is exactly the same as vinsci one but compliant with Python 3 import syntax (DBarthe did what @PoonLany explained in its answer)


Found another way and it works like charm.

from gd-inm source: https://github.com/vinsci/geohash/issues/4

  1. rename the package name to be geohash rather than Geohash
  2. change init.py to import from .geohash (with a dot in front of the module name) rather than from geohash

I had the same issue - if you rename the package name to be geohash rather than Geohash and then change init.py to import from .geohash (with a dot in front of the module name) rather than from geohash, the package should work for Python 3.5.2.


pip install python-geohash

This should fix it.