Python Can';在Google地图包中找不到Google地图
我尝试了此导入语句,但它不起作用:Python Can';在Google地图包中找不到Google地图,python,python-3.x,google-maps,Python,Python 3.x,Google Maps,我尝试了此导入语句,但它不起作用: from googlemaps import GoogleMaps 这是我要运行的代码: address = "207 N. Defiance St, Archbald, OH" print(GoogleMaps().address_to_latlng(address)) 我使用以下代码安装了该软件包: conda install -c conda-forge googlemaps 我做错了什么?试试: from googlemaps.client i
from googlemaps import GoogleMaps
这是我要运行的代码:
address = "207 N. Defiance St, Archbald, OH"
print(GoogleMaps().address_to_latlng(address))
我使用以下代码安装了该软件包:
conda install -c conda-forge googlemaps
我做错了什么?试试:
from googlemaps.client import Client
[...]
address = "207 N. Defiance St, Archbald, OH"
print(Client().address_to_latlng(address))