Python的包管理工具pip

1. pip install 安装软件

[root@SST24 ~]# pip install somepackage 
[...]
Successfully installed somepackage
<br><br>参数:<br>--upgrade 升级某包

 2. pip show 查看已安装的软件

[root@SST24 ~]# pip show robotframework
Name: robotframework
Version: 3.0.2
Summary: A generic test automation framework
Home-page: http://robotframework.org
Author: Robot Framework Developers
Author-email: robotframework@gmail.com
License: Apache License 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires:

 3. pip list 列出现有软件

[root@SST24 ~]# pip list
certifi (2017.4.17)
chardet (3.0.4)
[...]

4. pip uninstall 卸载某软件

[root@SST24 ~]# pip uninstall somepackage
Uninstalling somepackage:
/my/env/lib/pythonx.x/site-packages/somepackage
Proceed (y/n)? y
Successfully uninstalled somepackage
原文地址:https://www.cnblogs.com/zihanxing/p/7060441.html