2

我刚刚在lab环境中完成了dcos环境的安装,当我尝试在centos7 linux机器上安装dcos客户端时,我得到了

**[root@rmavmdock5 dcos]# bash install.sh . http://10.120.1.187**
Installing DC/OS CLI from PyPI...

New python executable in /root/dcos/bin/python
Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
 File "/root/dcos/bin/dcos", line 7, in <module>
   from dcoscli.main import main
 File "/root/dcos/lib/python2.7/site-packages/dcoscli/main.py", line 7, in <module>
   from dcos import config, constants, emitting, errors, http, subcommand, util
 File "/root/dcos/lib/python2.7/site-packages/dcos/config.py", line 10, in <module>
   from dcos import constants, jsonitem, subcommand, util
 File "/root/dcos/lib/python2.7/site-packages/dcos/jsonitem.py", line 5, in <module>
   from dcos import util
 File "/root/dcos/lib/python2.7/site-packages/dcos/util.py", line 2, in <module>
   import concurrent.futures
ImportError: No module named concurrent.futures

我查看了谷歌并发现我们的类似案例修复了运行“pip install futures”但即使在安装后安装仍然失败

[root@rmavmdock5 bin]# pip install features

Requirement already satisfied (use --upgrade to upgrade): features in /usr/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): concepts<1.0,>=0.7 in /usr/lib/python2.7/site-packages (from features)
Requirement already satisfied (use --upgrade to upgrade): graphviz<1.0,>=0.3 in /usr/lib/python2.7/site-packages (from features)
Requirement already satisfied (use --upgrade to upgrade): fileconfig<1.0,>=0.5 in /usr/lib/python2.7/site-packages (from features)
Requirement already satisfied (use --upgrade to upgrade): bitsets<1.0,>=0.7 in /usr/lib/python2.7/site-packages (from concepts<1.0,>=0.7->features)

[root@rmavmdock5 bin]# pip install --upgrade features

Requirement already up-to-date: features in /usr/lib/python2.7/site-packages
Requirement already up-to-date: concepts<1.0,>=0.7 in /usr/lib/python2.7/site-packages (from features)
Requirement already up-to-date: graphviz<1.0,>=0.3 in /usr/lib/python2.7/site-packages (from features)
Requirement already up-to-date: fileconfig<1.0,>=0.5 in /usr/lib/python2.7/site-packages (from features)
Requirement already up-to-date: bitsets<1.0,>=0.7 in /usr/lib/python2.7/site-packages (from concepts<1.0,>=0.7->features)

点子版本

[root@rmavmdock5 bin]# pip -V
pip 8.1.2 from /root/dcos/lib/python2.7/site-packages (python 2.7)

逐行检查安装脚本我发现dcos客户端安装过程在安装脚本尝试运行时报告了这些错误

# storage dcos config set core.reporting true

但整个过程运行良好,直到使用命令配置 dcos 二进制文件

/root/dcos/bin/pip install --quiet dcoscli

,此命令是使 dcos 命令可用的命令,并且似乎由于任何原因无法正常工作

我使用 -v 选项运行了相同的命令(输出很大,不知道如何附加文件),但命令结束

Successfully installed dcos-0.4.8 dcoscli-0.4.8 docopt-0.6.2 gitdb-0.6.4 gitpython-1.0.2 jsonschema-2.4.0 pager-3.3 pkginfo-1.2.1 portalocker-0.5.7 prettytable-0.7.2 pygments-2.1.3 pypng-0.0.18 pystache-0.5.4 requests-2.10.0 rollbar-0.13.2 six-1.10.0 smmap-0.9.0 toml-0.9.1 virtualenv-13.1.2
Cleaning up..
4

1 回答 1

2

virtualenv 环境没有期货。通过虚拟环境 pip 安装,而不是系统安装。

从 dcos 目录:

bin/pip install futures

然后再做bash install.sh . <url>一次

于 2016-07-08T02:31:58.650 回答