python自动化运维常用模块安装

1、系统信息性能模块:psutil
  源码安装:
  wget https://pypi.python.org/packages/source/p/psutil/psutil-2.0.0.tar.gz --no-check-certificate
  tar -xzvf psutil-2.0.0.tar.gz
  cd psutil-2.0.0
  python setup.py install
安装报错:
yum install gcc libffi-devel python-devel openssl-devel
2、IP地址处理模块IPy
  wget https://pypi.python.org/packages/source/I/IPy/IPy-0.81.tar.gz --no-check-certificate
  tar -zxvf IPy-0.81.tar.gz
  cd IPy-0.81
  python setup.py install
3、DNS处理模块dnspython
  wget http://www.dnspython.org/kits/1.9.4/dnspython-1.9.4.tar.gz
  tar -zxvf dnspython-1.9.4.tar.gz
  cd dnspython-1.9.4
  python setup.py install
 
posted @ 2017-11-03 15:59  西门运维  阅读(986)  评论(0编辑  收藏  举报