I found a simplest way to solve this.This code will make your life easier!!.add this code in the beginning of your code.
import certifi import urllib os.environ["REQUESTS_CA_BUNDLE"] = certifi.where() os.environ["SSL_CERT_FILE"] = certifi.where()