linux环境安装pip

1、适用于python2.7+

yum install -y python-devel krb5-devel \
&& curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py \
&& python get-pip.py

 

2、适用于python3

yum install -y python-devel krb5-devel \
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
&& python get-pip.py

 

posted @ 2024-04-10 12:27  gentsir  阅读(46)  评论(0编辑  收藏  举报