Gsutil无法在Amazon EC2上安装?

时间:2018-06-28 12:41:59

标签: python google-cloud-platform gcloud gsutil

我的ec2 linux是

Linux ip-<ip> <...>.amzn1.x86_64 #1 SMP Wed Mar 14 01:17:26 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

并且我正在尝试安装gsutil,但会引发语法错误

日志是:

curl https://sdk.cloud.google.com | bash

<many file>

google-cloud-sdk/.install/core.manifest
google-cloud-sdk/.install/.download/

/home/ec2-user/google-cloud-sdk/install.sh
Welcome to the Google Cloud SDK!
Traceback (most recent call last):
  File "/home/ec2-user/google-cloud-sdk/bin/bootstrapping/install.py", line 12, in <module>
    import bootstrapping
  File "/home/ec2-user/google-cloud-sdk/bin/bootstrapping/bootstrapping.py", line 32, in <module>
    import setup  # pylint:disable=g-import-not-at-top
  File "/home/ec2-user/google-cloud-sdk/bin/bootstrapping/setup.py", line 55, in <module>
    from googlecloudsdk.core import properties
  File "/home/ec2-user/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 296
    self.__sections = {section.name: section for section in sections}
                                               ^
SyntaxError: invalid syntax

Python版本:Python 2.7.13 甚至gcloud都没有安装 怎么了?

我只想使用cli将数据从S3传输到Google存储桶

0 个答案:

没有答案