zl程序教程

您现在的位置是:首页 >  后端

当前栏目

[已解决]报错:python3 geohash 导入错误

Python3错误导入 解决 报错
2023-09-11 14:21:23 时间

方法一: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