Can't import google.cloud.vision

joey22 picture joey22 · Aug 17, 2018 · Viewed 8.9k times · Source

I'm using Anaconda, and I'm trying to use google cloud vision, but I cannot import google cloud vision. I can import google cloud, but it throws an error below.

from google.cloud import vision
ImportError: cannot import name 'vision'

What module should I import with anaconda? (I've already imported google-api-core, google-auth, google-cloud-bigquery, google-cloud-core, google-cloud-sdk, google-cloud-storage, google-resumable-media, google-resumable-media, googleapis-common-protos)

Could anyone solve this? Thanks in advance.

Answer

norbjd picture norbjd · Aug 17, 2018

You may need to add a dependency to google-cloud-vision.