SSLCertVerificationError-Geopy-无法获取本地发行者证书(_ssl.c:1108)

时间:2020-04-19 17:02:16

标签: python ssl geopy

我正在尝试像这样的简单查询(它们在geopy documentation中出现:

dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.2
  font_awesome_flutter: ^8.4.0

但我收到此错误:

from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent='testing')
location = geolocator.geocode("175 5th Avenue NYC")
print(location.raw)

有人知道如何修复它并使其运行吗?

我在Jupyter Notebook上安装了python 3.8

1 个答案:

答案 0 :(得分:0)

在此发现问题:

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

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