CentOS7.6-pip安装

安装方式1   

wget  http://python-distribute.org/distribute_setup.py  

sudo python distribute_setup.py  

wget  https://github.com/pypa/pip/raw/master/contrib/get-pip.py  

sudo python get-pip.py  

 

安装方式2   

wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz --no-check-certificate   

tar xvf pip-1.3.1.tar.gz  

python pip-1.3.1/setup.py install

使用tar.gz安装,可能会报错:ImportError: No module named setuptools

 

安装方式3    

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

python get-pip.py  

 

对于python2.7版本

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

python get-pip.py

 

可以通过pip help来查看帮助。简单用的话只要pip searchpip install就好了。

posted @ 2024-03-07 18:18  业余砖家  阅读(68)  评论(0编辑  收藏  举报