Skip to content

Install google-cloud-python not working? #2366

@hohaichi

Description

@hohaichi

Does anyone know if how to install google-cloud python client library? I tried the pip command below, which succeeded, but it still seems like something is missing. from google.cloud import storage complains that cloud module doesn't exist. Thanks.

$ sudo pip install --upgrade google-cloud
Requirement already up-to-date: google-cloud in /usr/local/lib/python2.7/dist-packages/google_cloud-0.19.0-py2.7.egg
Requirement already up-to-date: httplib2>=0.9.1 in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: googleapis-common-protos in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: oauth2client>=2.0.1 in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: protobuf>=3.0.0 in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: six in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: grpcio>=1.0.0 in /usr/local/lib/python2.7/dist-packages (from google-cloud)
Requirement already up-to-date: google-gax<0.14dev,>=0.13.0 in /usr/local/lib/python2.7/dist-packages/google_gax-0.13.0-py2.7.egg (from google-cloud)
Requirement already up-to-date: gapic-google-pubsub-v1<0.10dev,>=0.9.0 in /usr/local/lib/python2.7/dist-packages/gapic_google_pubsub_v1-0.9.1-py2.7.egg (from google-cloud)
Requirement already up-to-date: grpc-google-pubsub-v1<0.10dev,>=0.9.0 in /usr/local/lib/python2.7/dist-packages/grpc_google_pubsub_v1-0.9.0-py2.7.egg (from google-cloud)
Requirement already up-to-date: gapic-google-logging-v2<0.10dev,>=0.9.0 in /usr/local/lib/python2.7/dist-packages/gapic_google_logging_v2-0.9.1-py2.7.egg (from google-cloud)
Requirement already up-to-date: grpc-google-logging-v2<0.10dev,>=0.9.0 in /usr/local/lib/python2.7/dist-packages/grpc_google_logging_v2-0.9.0-py2.7.egg (from google-cloud)
Requirement already up-to-date: pyasn1>=0.1.7 in /usr/local/lib/python2.7/dist-packages (from oauth2client>=2.0.1->google-cloud)
Requirement already up-to-date: pyasn1-modules>=0.0.5 in /usr/local/lib/python2.7/dist-packages (from oauth2client>=2.0.1->google-cloud)
Requirement already up-to-date: rsa>=3.1.4 in /usr/local/lib/python2.7/dist-packages (from oauth2client>=2.0.1->google-cloud)
Requirement already up-to-date: enum34>=1.0.4 in /usr/local/lib/python2.7/dist-packages (from grpcio>=1.0.0->google-cloud)
Requirement already up-to-date: futures>=2.2.0 in /usr/local/lib/python2.7/dist-packages (from grpcio>=1.0.0->google-cloud)
Requirement already up-to-date: future>=0.15.2 in /usr/local/lib/python2.7/dist-packages (from google-gax<0.14dev,>=0.13.0->google-cloud)
Requirement already up-to-date: ply==3.8 in /usr/local/lib/python2.7/dist-packages (from google-gax<0.14dev,>=0.13.0->google-cloud)
Cleaning up...

But on import

$ python -c "from google.cloud import storage"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/buildtools/current/sitecustomize/sitecustomize.py", line 181, in SetupPathsAndImport
    return real_import(name, globals, locals, fromlist, level)
ImportError: No module named cloud

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions