CentOS 7.2默认安装的python版本为python2.7.5,我的系统里面默认是没有安装pip 的,搜了下网上各路大侠的解决办法,如下:

使用yum安装python-pip,但是报错,说没有可用的包。

CentOS 7.2安装pip

安装epel源

[root@sishen yum.repos.d]# yum install -y epel-release

然后在执行

[root@sishen yum.repos.d]# yum install -y python-pip

CentOS 7.2安装pip

至此,pip2安装完成!

相关文章:

  • 2021-08-29
  • 2022-02-24
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-15
  • 2021-08-05
  • 2021-07-21
  • 2021-12-31
  • 2021-10-04
  • 2022-01-06
  • 2021-08-19
相关资源
相似解决方案