快速安装部署linux系统debian10所需的pip

pip是一个以Python计算机程序语言写成的软件包管理系统

这是官网的部署安装https://pypi.org/project/pip/

在我们安装很多软件时需要用到pip安装,这里做简单的安装部署教学

做到简单明了,一步到位

安装pip:

#CentOS 6.x 32位

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum install -y python-pip

#CentOS 6.x 64位

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
yum install -y python-pip

#CentOS 7.x

yum install -y epel-release
yum install -y python-pip

#如果CentOS 7安装出现No package python-pip available,可以用以下命令进行安装

wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

#Debian/Ubuntu系统

apt-get -y update
apt-get -y install python-pip

————————————————————————————————————-

安装pip3:

#CentOS系统

wget –no-check-certificate https://www.moerats.com/usr/shell/Python3/CentOS_Python3.6.sh && sh CentOS_Python3.6.sh

#Debian系统

wget –no-check-certificate https://www.moerats.com/usr/shell/Python3/Debian_Python3.6.sh && sh Debian_Python3.6.sh

然后安装的时候还报错了ERROR: The certificate of `www.moerats.com’ is not trusted.”

不得不用另外一条命令

apt-get install ca-certificates -y #Debian/Ubuntu

yum install ca-certificates -y #CentOS

#查看是否安装成功

pip3 -V
THE END