1、yum 安装pip
yum -y install epel-release

yum -y install python-pip

2、安装pyflakes
pip install pyflakes

3、python文件语法检查
pyflakes hosts.py