diff options
author | 2018-03-07 17:26:18 -0800 | |
---|---|---|
committer | 2018-03-07 17:32:10 -0800 | |
commit | d90b30286a6ac808371131d1f05b371f37127265 (patch) | |
tree | 9304520bb4052d497f0a748b5aeda74ea9dc8288 | |
parent | 6f8ac2157c05d76ed75e6e8c0e93077d7d664457 (diff) |
Helpful ImportError message
PiperOrigin-RevId: 188261273
-rw-r--r-- | tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py index 91874f9b5c..300b19733e 100644 --- a/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py +++ b/tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py @@ -147,7 +147,9 @@ class TPUClusterResolver(ClusterResolver): if service is None and should_resolve: if not _GOOGLE_API_CLIENT_INSTALLED: raise ImportError('googleapiclient must be installed before using the ' - 'TPU cluster resolver') + 'TPU cluster resolver. Execute: `pip install ' + '--upgrade google-api-python-client` to install with ' + 'pip.') self._service = discovery.build( 'tpu', 'v1alpha1', |