如何在geolocation-python中导入google_maps

时间:2016-02-03 16:42:41

标签: python geolocation

我已经安装了geolocation-python

https://pypi.python.org/pypi/geolocation-python/0.2.0

pip install geolocation-python

我试图效仿这个例子,但是在第一行:

from geolocation.google_maps import GoogleMaps

我收到错误:

No module named google_maps

1 个答案:

答案 0 :(得分:1)

我认为你应该使用:

from geolocation.main import GoogleMaps

代替。它对我有用。

见这里:https://pypi.python.org/pypi/geolocation-python/0.2.2