CentOS7.5安装python-pip报Error: Nothing to do解决方法

python中的一个十分好用的包管理工具python-pip是我们使用python必不可少的一件工具。但是在CentOS7安装时候却报Error: Nothing to do

[root@bnsf-lys ~]# pip
-bash: pip: command not found
[root@bnsf-lys ~]# yum install -y pip
Loaded plugins: langpacks, versionlock
Excluding 1 update due to versionlock (use "yum versionlock status" to show it)
No package pip available.
Error: Nothing to do
[root@bnsf-lys ~]#

是因为CentOS官方的源有些时候滞后导致的。所以我们可以用fedora社区打造的EPEL(http://fedoraproject.org/wiki/EPEL)来进行安装即可:

[root@bnsf-lys ~]# yum -y install epel-release
[root@bnsf-lys ~]# yum -y install python-pip
[root@bnsf-lys ~]# pip --help

Usage:   
  pip <command> [options]

Commands:
  install                     Install packages.
  download                    Download packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  hash                        Compute hashes of package archives.
  completion                  A helper command used for command completion
  help                        Show help for commands

 

转载于:https://www.cnblogs.com/xiaohailuo/p/11098260.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值