1、首先安装epel扩展源
pip install --upgrade setuptools
sudo yum clean all
sudo yum -y install epel-release
#yum remove audit
sudo yum -y install python-pip
#yum install -y python-devel gcc libffi-devel openssl-devel libxslt-devel libxml2-devel
5、升级pip到8.1.2
pip install --upgrade pip
pip install --upgrade setuptools
7、配置scrape的环境变量
vi /etc/profileexport LD_LIBRARY_PATH=/usr/local/lib
sudo yum clean all