1、yum 安装pipyum -y install epel-release
yum -y install python-pip
2、安装pyflakespip install pyflakes
3、python文件语法检查pyflakes hosts.py