Skip to content Skip to sidebar Skip to footer

How To Install Google.cloud Automl_v1beta1 For Python Using Anaconda?

Google Cloud AutoML has python example code for detection, but I have error when importing these modules from google.cloud import automl_v1beta1 from google.cloud.automl_v1beta1.pr

Solution 1:

I just solved it and it's a very simple problem. I reinstall google-cloud-automl using below command and works.

pip.exe install google-cloud-automl

Why it didn't work last time I tried it? It's because I didn't run anaconda prompt as administrator. The reason is when installing google-cloud-automl it will uninstall deprecated projects like future, like this :

Found existing installation: futures 3.1.1
    DEPRECATION: Uninstalling a distutils installed project (futures) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling futures-3.1.1:
      Successfully uninstalled futures-3.1.1

Future will be only successfully removed if I run the command as administrator. Last time it thrown authentication error that I didn't realize, so the re-installation process stopped. Hope it will help some people in the future.


Solution 2:

You can install packages inside the Jupiter notebook cell, I hope it will work for you. enter image description here


Post a Comment for "How To Install Google.cloud Automl_v1beta1 For Python Using Anaconda?"