pythongoogle-cloud-platformanacondagoogle-cloud-vision

Can't import google.cloud.vision


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.


Solution

  • You may need to add a dependency to google-cloud-vision. To install the latest version, just run:

    pip install google-cloud-vision