centos和ubuntu安装python-pip,python包的管理工具

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos和ubuntu安装python-pip,python包的管理工具相关的知识,希望对你有一定的参考价值。

对于centos: (基于小红帽的系统)

需要先安装epel-release

运行

yum install epel-release

yum install wget

对于cent os 7.x(x86*64)

rpm -ivh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm

对于cent os 6.x(x86*64)

 rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

对于cent os 6.x(i386)

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

对于cent os 5.x(x86*64)

rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

对于cent os 5.x(i386)

rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

然后安装pip

yum install -y python-pip

对于ubuntu:(基于Debian的系统)

 

  1. # apt-get install Python (基于Debian的系统)
  2. # apt-get install python-pip (基于Debian的系统)

 

以上是关于centos和ubuntu安装python-pip,python包的管理工具的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7安装python-pip

CentOS7下安装python-pip

CentOS7下安装python-pip

CentOS7下安装python-pip

CentOS7下安装python-pip

CentOS7安装python-pip