在centos7下,默认安装了python2.7,  但是包管理工具pip并没有安装。

直接运行yum install python-pip, 出现如下情况

centos7 yum安装pip

这种情况是因为centos7 默认是没有相关源信息,因此首先要安装下扩展源EPEL(自行百度了解)

yum -y install epel-release

centos7 yum安装pip

然后再安装 pip,执行命令yum -y install python-pip即可

centos7 yum安装pip

相关文章:

  • 2021-12-31
  • 2021-07-12
  • 2021-08-26
  • 2021-09-05
  • 2021-07-31
  • 2021-06-05
猜你喜欢
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2021-11-19
  • 2022-01-19
相关资源
相似解决方案