【发布时间】:2018-12-30 09:56:50
【问题描述】:
我正在尝试在我的 Macbook Pro 上安装 Google Cloud SDK。如果我尝试按照https://cloud.google.com/storage/docs/gsutil_install 下载并运行 bash 脚本,
curl https://sdk.cloud.google.com | bash
我收到以下错误:
For the latest full release notes, please visit:
https://cloud.google.com/sdk/release_notes
╔════════════════════════════════════════════════════════════╗
╠═ Creating update staging area ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: BigQuery Command Line Tool ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: BigQuery Command Line Tool (Platform Spec... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud SDK Core Libraries (Platform Specific) ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool (Platform... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Default set of gcloud commands ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud cli dependencies ═╣
ERROR: (gcloud.components.update) The component [gcloud-deps-darwin-x86_64] failed to download.
或者,如果我尝试使用sudo pip install gsutil 安装它,然后尝试运行它,我会收到以下错误:
Kurts-MacBook-Pro:peek-solutions2 kurtpeek$ gsutil --help
gsutil requires python 2.7.
使用pyenv 将 Python 版本设置为 2.7 后,我仍然收到此错误:
Kurts-MacBook-Pro:peek-solutions2 kurtpeek$ pyenv versions
system
* 2.7 (set by PYENV_VERSION environment variable)
3.6.5
如何安装gsutil 的工作版本?
【问题讨论】: