yum install python-setuptools python-devel -y
easy_install pip
[root@localhost ~]# pip install fabric
[root@localhost ~]# fab -h
Traceback (most recent call last):
File "/usr/bin/fab", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: paramiko>=1.10
解决:
pip uninstall fabric paramiko
pip install paramiko==1.10
pip install fabric==1.8.1
vim /usr/lib64/python2.6/site-packages/Crypto/Util/number.py
注释56-57行
56 #if _fastmath is not None and not _fastmath.HAVE_DECL_MPZ_POWM_SEC:
57 # _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
成功运行
[root@localhost ~]# fab -h
Usage: fab [options] <command>[:arg1,arg2=val2,host=foo,hosts='h1;h2',...] ...
Options:
-h, --help show this help message and exit
-d NAME, --display=NAME
print detailed info about command NAME
-F FORMAT, --list-format=FORMAT