SSLCertVerificationError - Geopy - 无法获取本地颁发者证书 (_ssl.c:1108)
SSLCertVerificationError - Geopy - unable to get local issuer certificate (_ssl.c:1108)
我正在尝试像这样的简单查询(来自 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
发现问题所在:
基本上,出于某种原因,Brew 没有 运行 安装 Certificates.command Python3 包中的 Mac。
我正在尝试像这样的简单查询(来自 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
发现问题所在:
基本上,出于某种原因,Brew 没有 运行 安装 Certificates.command Python3 包中的 Mac。