warning: /var/tmp/rpm-tmp.NOUo02: Header V3 RSA/SHA256 Signature, key> Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
安装扩展包源完成.
接着安装python-pip
[root@localhost ~]# yum install python-pip
。。。。。。。。。。。。。。。。。。。。。。。。
。。。。。。。。。。。。。。。。。。。。。。。。 Installing : python-setuptools-0.6.10-3.el6.noarch
Installing : python-pip-1.3.1-4.el6.noarch
Installed:
python-pip.noarch 0:1.3.1-4.el6
Dependency Installed:
python-setuptools.noarch 0:0.6.10-3.el6
Complete!
安装python-pip完成,在linux,shell中键入pip测试看有无该指令。
2,使用
[root@localhost ~]# pip
Usage:
pip <command> [options]
Commands:
install Install packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
zip Zip individual packages.
unzip Unzip individual packages.
bundle Create pybundles.
help Show help for commands.
General Options:
-h, --help Show help.
-v, --verbose Give more output. Option is additive, and can be used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log <file> Log file where a complete (maximum verbosity) record will be kept.
--proxy <proxy> Specify a proxy in the form [user:passwd@]proxy.server:port.
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup.