在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
posted @ 2020-08-19 21:23  SimonLiu91  阅读(385)  评论(0编辑  收藏  举报