0

I have the required libraries installed on my machine:

Collecting google-cloud
Downloading https://files.pythonhosted.org/packages/ba/b1/7c54d1950e7808df06642274e677dbcedba57f75307adf2e5ad8d39e5e0e/google_cloud-0.34.0-py2.py3-none-any.whl
Installing collected packages: google-cloud
Successfully installed google-cloud-0.34.0

However when I actually try to setup my dataset on cloud storage as per the instructions tutorial I am getting an error stating that the package is not installed, when clearly it is :

File "automl_vision_dataset.py", line 280, in <module>
project_id, compute_region, args.dataset_name, multilabel
File "automl_vision_dataset.py", line 37, in create_dataset
from google.cloud import automl_v1beta1 as automl
ImportError: No module named google.cloud

Can you please help? what am I missing here? thanks

Daniel Vieira
  • 461
  • 5
  • 19
  • Hi @Bira, thanks, I already solved the problem back then if I recall properly - it was a few months ago. I was already using virtualenv and pip as package manager and the module was properly installed, issue was to do with how the import was specificied if I recall properly – Daniel Vieira Feb 08 '19 at 11:01
  • what edit do you refer to? that was a few months ago so I do not even remember. What I can say is that this was not a question about the virtues or need of using virtualenv (the topic of your answer), but rather an import of a library that was failing, which I then corrected via the correct syntax. – Daniel Vieira Feb 22 '19 at 10:00

1 Answers1

0

You need to pip install google-cloud-automl

michotross
  • 364
  • 3
  • 12
  • I don't know why installing `google-cloud` doesn't give you `google.cloud`. You'd have to ask Google why they did that. Here's a relevant page: https://pypi.org/project/google-cloud-automl/ – michotross Jul 18 '19 at 15:26