AWS CLI安装时带有错误的参数

时间:2017-01-03 23:40:34

标签: python amazon-web-services aws-cli

我试图在CentOS 7实例上安装awscli工具,我给安装脚本一个错误的安装目录。现在看来我在主机上的Python设置已经坏了。

这是我运行的命令和后续输出:

[root@localhost awscli-bundle]# ./install -i /usr/bin
Running cmd: /bin/python virtualenv.py --python /bin/python /usr/bin
Running cmd: /usr/bin/bin/pip install --no-index --find-links file:///home/rhaskins/awscli-bundle/packages awscli-1.11.30.tar.gz
You can now run: /usr/bin/bin/aws --version

现在当你跑yum(例如)时,我得到:

[root@localhost awscli-bundle]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov  6 2016, 00:28:07)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://yum.baseurl.org/wiki/Faq

如何撤消此操作?

1 个答案:

答案 0 :(得分:-1)

@jarmod,我知道您可以轻松创建新的AWS实例,并且我试图了解是否有一种简单的方法来撤消我所做的事情。最后,我最终构建了一个新实例并使用直接pip install方法安装AWS CLI,而不是使用AWS CLI下载包附带的捆绑安装程序。