centos安装pip

1、 yum install epel-release

2、 python3 执行 yum install python3-pip /  python2 执行 yum install python-pip 

3、 查看版本pip3 --version

4、 安装成功后, 如果想安装requests, 就执行 pip3 install requests

如果报错网络不可达,切换国内源,指定国内执行源

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple requests
posted @ 2023-11-21 22:21  ho966  阅读(219)  评论(0编辑  收藏  举报