Python3安装geohash
来源:互联网 发布:淘宝里猜你喜欢在哪里 编辑:程序博客网 时间:2024/06/01 13:54
Geohash是一个可以对地理位置信息进行加密和解密的系统,https://en.wikipedia.org/wiki/Geohash
Python安装geohash库后,可调用decode()和encode()函数。按照一般的步骤进行安装(pip install geohash),在确认安装成功后,import Geohash 仍然报错:ImportError: No module named ‘geohash’, 说找不到Geohash模块。
百思不得其解。后面想到可能是Python3和Python2有所不一样,我用的是Python3。在网上找到一个解决方案:
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.
按照这个方法修改文件名称和 init.py 中的内容后,成功。
阅读全文
0 0
- Python3安装geohash
- geohash
- geohash
- GEOHash
- geoHash
- geohash
- Geohash
- GeoHash
- geohash
- GeoHash
- GeoHash
- GeoHash
- 安装 Python3
- Python3 安装
- python3安装
- python3安装
- python3.5 安装python3-tk
- centos下安装python3
- Java多线程——获取多个线程任务执行完的时间
- Nginx安装与负载均衡配置
- 最大和
- js判断全选与全不选以及,js全不选时全选按钮会被勾掉
- NYOJ 23 取石子巴什博奕
- Python3安装geohash
- 【大数据部落】用R进行网站评论文本挖掘聚类
- cocos2dx获取系统当前时间
- 判定一个数独是否有效。
- Linux的吉祥物企鹅的名字?
- 【大数据部落】基于决策树的银行信贷风险预警模型
- 微信小程序推荐大全之201~300个
- git add详解
- undefined symbol: node_module_register 错误原因