pip安装
使用镜像网站安装
pip install -i Geohash http://mirrors.aliyun.com/pypi/simple
- 报错:
Cannot determine archive format of C:\Users\Zz\AppData\Local\Temp\pip-req-build-t35bzb_f - 解决办法:
重新安装,添加信任
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn Geohash
pip install geohash后无法import的解决方法
在上一步装好之后import geohash却报错,说找不到geohash这个模块
解决办法是去python35/Lib/site-packages/目录下,把Geohash文件夹重命名为geohash,然后修改该目录下的__init__.py文件,把里面的from geohash改为from .geohash
参考博客