mydeer
就像我们从来没有来过这里,但这种感觉似曾相识。
Centos7安装pip

方案一:通过Yum安装 Pip

步骤一: 添加 EPEL Repository

yum install epel-release

步骤二: 安装Pip

最好先更新下yum package

yum -y update

现在安装python-pip及其依赖

yum -y install python-pip

方案二:  通过Curl 和 Python 安装Pip

Note:

If you installed Pip with the previous Option, then SKIP this step.

We can also use cURL and Python to download and install Pip.

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
# 或者尝试 curl "https://bootstrap.pypa.io/pip/2.7/get-pip.py" -o "get-pip.py"
python get-pip.py

最后验证安装信息

查看帮助

pip --help

检查安装版本

pip -V

会看到类似这样的内容

pip 1.3.1 from /usr/lib/python2.7/site-packages (python 2.7)


参考:https://linuxize.com/post/how-to-install-pip-on-centos-7/

<< 上一篇 centos 使用 nignx yum源安装nginx
文章标签
随意 | Created At 2014 By William Clinton | Contact Me: 1619488373@qq.com | 蜀ICP备14002619号-4 |