python3 geohash 导入错误及解决

方法一:

  pip3 install  python-geohash

方法二:

  1.保证 pip3 install geohash 包

  2. 进入包的下载目录 /usr/local/lib/python3.5/dist-packages
  3.mv Geohash geohash
  4.cd geohash 
    修改__init__.py文件
   from geohash import decode_exactly, decode, encode
   修改为:from .geohash import decode_exactly, decode, encode

# geohash的使用方法

https://blog.csdn.net/qq_24452475/article/details/79184362

猜你喜欢

转载自www.cnblogs.com/shmily3929/p/9247289.html