【问题标题】:SSLCertVerificationError - Geopy - unable to get local issuer certificate (_ssl.c:1108)SSLCertVerificationError - Geopy - 无法获取本地颁发者证书 (_ssl.c:1108)
【发布时间】:2020-04-19 17:02:16
【问题描述】:

我正在尝试这样的简单查询(来自 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

【问题讨论】:

标签: python ssl geopy


【解决方案1】:

在此发现问题:

brew installation of Python 3.6.1: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

基本上,出于某种原因,Brew 没有运行 Mac 版 Python3 捆绑包中的 Install Certificates.command。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-04-12
    • 1970-01-01
    • 2021-09-17
    • 2020-08-01
    • 2016-04-20
    • 2021-07-20
    • 2021-12-27
    • 2021-11-25
    相关资源
    最近更新 更多