简体   繁体   中英

SSLCertVerificationError - Geopy - unable to get local issuer certificate (_ssl.c:1108)

Im trying simple queries like this (which come in geopy documentation :

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

but I get this error:

    GeocoderServiceError: [SSL: CERTIFICATE_VERIFY_FAILED] 
    certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)

Does anybody knows how to fix it and make it run?

I have python 3.8 on Jupyter Notebook

Found the issue in this:

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

Basically, for some reason, Brew did not run the Install Certificates.command that comes in the Python3 bundle for Mac.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM