-2

im getting a "URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1125)>" when trying to load the universal-sentence-encoder as such:

import tensorflow_hub as hub
hub.load('https://tfhub.dev/google/universal-sentence-encoder/4')

i tried to follow the instructions here and it worked the first couple of times, but now it isn't working. however, i get a 200 status code if i try something like this:

import requests

x = requests.get('https://w3schools.com/python/demopage.htm')

print(x.status_code)
200

how i can fix this error? thanks.

1 Answers1

0

If you are on MacOS try running this

/Applications/Python\ YOUR_PYTHON_VERSION_HERE/Install\ Certificates.command
OkDude
  • 11
  • 1