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
上一篇:Python 学习笔记二


下一篇:ES6读书笔记(二)