无法在Mac OSX上安装dcos-cli

时间:2016-09-19 22:15:17

标签: dcos

DCOS提供以下安装命令来安装cli工具:

mkdir -p dcos && cd dcos && 
curl -O https://downloads.dcos.io/dcos-cli/install.sh && 
bash ./install.sh . https://mydomain.co && 
source ./bin/env-setup

但是,当我在Mac上运行时,它会失败并显示以下内容:

mkdir -p dcos && cd dcos &&
 | →   curl -O https://downloads.dcos.io/dcos-cli/install.sh &&
 | →   bash ./install.sh . https://mydomain.co &&
 | →   source ./bin/env-setup
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  5163  100  5163    0     0   6460      0 --:--:-- --:--:-- --:--:--  6469
Installing DC/OS CLI from PyPI...

New python executable in /Users/petr/dcos/bin/python
Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/Users/petr/dcos/bin/dcos", line 7, in <module>
    from dcoscli.main import main
  File "/Users/petr/dcos/lib/python2.7/site-packages/dcoscli/main.py", line 7, in <module>
    from dcos import config, constants, emitting, errors, http, subcommand, util
  File "/Users/petr/dcos/lib/python2.7/site-packages/dcos/config.py", line 10, in <module>
    from dcos import constants, jsonitem, subcommand, util
  File "/Users/petr/dcos/lib/python2.7/site-packages/dcos/subcommand.py", line 12, in <module>
    from subprocess import PIPE
ImportError: cannot import name PIPE

当我在Ubuntu上运行相同的命令时,它运行正常。知道根本原因是什么吗?

1 个答案:

答案 0 :(得分:1)

我在OS X上安装DC / OS CLI时遇到的大多数问题都有与prerequisites无关的根本原因。也就是说,在DC / OS 1.8中,我们为CLI引入了binaries(完全是为了避免你所描述的情况)。