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
posted @   当年亦如是  阅读(226)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示