配置国内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

相关文章:

  • 2021-08-23
  • 2021-12-05
  • 2021-04-07
  • 2021-10-28
  • 2021-09-16
  • 2021-07-08
  • 2021-05-25
  • 2021-09-18
猜你喜欢
  • 2022-02-18
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-06-26
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案