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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM