我的 google 云集群在我的 python 文件中找不到模块 google?

My google cloud cluster cannot find the module google in my python file?

我正在尝试 运行 云上的 python 文件,在本地 运行 没问题。当我尝试 运行 它时,我收到以下错误:

ModuleNotFoundError: No module named 'google.cloud'

在我的集群脚本中,我安装了tensorflow如下。我需要为 Google.cloud 做类似的事情吗?

CLUSTER = '{}-cluster'.format(PROJECT)
!gcloud dataproc clusters create $CLUSTER \
    --image-version 1.5-ubuntu18 --single-node \
    --master-machine-type n1-standard-8 \
    --master-boot-disk-type pd-ssd --master-boot-disk-size 100 \
    --max-idle 3600s \
    --initialization-actions=gs://goog-dataproc-initialization-actions-$REGION/python/pip-install.sh \
    --metadata=PIP_PACKAGES=tensorflow==2.4.0

谢谢

需要用pip install google-cloud安装google云库或者写在metadata部分(同tensorflow)