我正在尝试像这样的简单查询(在geopy documentation中提供
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent='testing')
location = geolocator.geocode("175 5th Avenue NYC")
print(location.raw)
但是我得到了这个错误:
GeocoderServiceError: [SSL: CERTIFICATE_VERIFY_FAILED]
certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)
有人知道如何修复它并让它运行吗?
我在Jupyter Notebook上安装了python 3.8
发布于 2020-04-24 00:04:16
发现问题出在以下位置:
brew installation of Python 3.6.1: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
基本上,由于某些原因,Brew没有运行用于Mac的Python3包中的Install Certificates.command。
https://stackoverflow.com/questions/61308269
复制相似问题