python - Gsutil not installing on amazon ec2?
问题描述
My ec2 linux is
Linux ip-<ip> <...>.amzn1.x86_64 #1 SMP Wed Mar 14 01:17:26 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
and I am trying to install gsutil but it throws a syntax error
logs are :
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 version : Python 2.7.13 Even gcloud isn't installing Whats wrong?
I just want to transfer data from S3 to google bucket using cli
解决方案
推荐阅读
- c# - Nuget 规范 AspNet 与 AspNetCore
- xml - 使用从 SGM 文件中获取实体节点
- javascript - 如果未找到正则表达式匹配 JavaScript,则为空值
- android - 在 RecyclerView.Adapter 中,notifyItemChanged 并不总是调用 onBindViewHolder
- javascript - yii2 + babel 如何实现
- python-3.x - Python 脚本独立工作正常,但是,当从外部脚本调用时,我得到 NameError name 'x' is not defined
- python - 如何将 2 列熊猫数据框转换为日期时间?
- python - 解析 PDML / XML 并为 Pandas 选择特定字段
- java - Windows 10 - 使用 bash 终端将 Java 和 Maven 设置为环境和系统变量
- javascript - Bootstrap Carousel 删除项目和指标问题