在CentOS7上安装pip2
配置国内pip源
mkdir ~/.pip
cd ~/.pip
cat > pip.conf <<EOF
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
EOF
安装pip2
yum install epel-release -y
yum install python2-pip -y
安装python模块
pip install psutil