0

I am trying to call the Google Cloud Vision API from Google Cloud Datalab, but getting an import error. Has anyone encountered/resolved this?

I am following the guide in https://cloud.google.com/vision/docs/detecting-safe-search

from google.cloud import vision
ImportError: cannot import name 'vision'
Brendan
  • 1,017
  • 5
  • 7
Jose
  • 13
  • 1
  • 3

1 Answers1

0

Google Cloud Datalab lists their included libraries. Datalab doesn't include google-cloud-vision by default.

Here are instructions for adding python libraries. You can pip install google-cloud-vision and then continue with the guide.

Brendan
  • 1,017
  • 5
  • 7
  • Yep. That did the trick for this particular hurdle. Thanks! Now trying to resolve what seems to be compatibility errors between libraries.... it's odd to be stuck dealing with Google libraries in Google Datalab. If there are any books using vision in datalab, let me know! – Jose Jul 05 '19 at 06:55