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.
You need to create a project in the Google cloud, give it a credit card number, enable the GCV API, and then get an API key. You won't be charged anything unless you make 1000 API calls in a month; but then you start paying, so be careful!
You may need to add a dependency to google-cloud-vision
.
You can install google-cloud-vision by typing:
sudo pip install google-cloud-vision
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With