56
在Centos和Ubuntu上安装pip和python案例
source link: https://www.linuxprobe.com/centos-pip-python.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
CentOS版本怎么安装python的pip,我之前给出的Ubuntu下apt-get的方法
ubuntu需要先安装pip
apt-get install python-pip
ubuntu上安装requests
pip install requests
但是有的朋友由于是centos的,直接 yum install pip 或者 yum install python-pip都是不行的。
其实不能yum那就直接下载编译安装呗。
centos安装pip
CentOS 6.4安装pip,CentOS安装python包管理安装工具pip的方法如下:
截至包子写本文的时候,pip最新为 1.5.5
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
注意:wget获取https的时候要加上:--no-check-certificate
tar zvxf 1.5.5.tar.gz #解压文件 cd pip-1.5.5/ python setup.py install
OK,这样就安装好pip了,
centos通过pip安装requests
pip install requests
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK