Google drive api gcloud在解析我的谷歌硬盘路径时遇到问题

Google drive api gcloud在解析我的谷歌硬盘路径时遇到问题,google-drive-api,gcloud,google-colaboratory,gcp-ai-platform-notebook,Google Drive Api,Gcloud,Google Colaboratory,Gcp Ai Platform Notebook,我尝试运行谷歌的人工智能解释图像示例。 链接: 然后,我用这些代码挂载我的谷歌硬盘 from google.colab import drive drive.mount('/content/gdrive') 然后,我用 export_path = keras_estimator.export_saved_model( '/content/gdrive/My Drive/xai_flower/', serving_input_receiver_fn ).decode('utf-8')

我尝试运行谷歌的人工智能解释图像示例。 链接:

然后,我用这些代码挂载我的谷歌硬盘

from google.colab import drive
drive.mount('/content/gdrive')
然后,我用

export_path = keras_estimator.export_saved_model(
  '/content/gdrive/My Drive/xai_flower/',
  serving_input_receiver_fn
).decode('utf-8')
但是当我想用的时候

!gcloud beta ai-platform versions create $VERSION \
--model $MODEL \
--origin $export_path \
--runtime-version 1.14 \
--framework TENSORFLOW \
--python-version 3.5 \
--machine-type n1-standard-4 \
--explanation-method integrated-gradients \
--num-integral-steps 25
它将输出

/bin/bash: /content/gdrive/My: No such file or directory
ERROR: (gcloud.beta.ai-platform.versions.create) unrecognized arguments: Drive/xai_flower/1576834069
显然,gcloud存在用空格解析路径的问题


我已尝试使用其他单词重命名“我的驱动器”,但它似乎不可用。

请尝试使用反斜杠(
\
)转义路径中的空格,即

export_path = keras_estimator.export_saved_model(
  '/content/gdrive/My\ Drive/xai_flower/',
  serving_input_receiver_fn
).decode('utf-8')