博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pip 查看依赖关系_用Pip列出过时的依赖关系
阅读量:2518 次
发布时间:2019-05-11

本文共 1364 字,大约阅读时间需要 4 分钟。

pip 查看依赖关系

In the past, if you wanted to review your installed pip packages to see if there are updates available, you either had to use tools like or check all of them manually.

过去,如果您想查看已安装的pip软件包以查看是否有可用的更新,则必须使用类或手动检查所有这些 。

But since version 1.3 (released on 2013-03-07), pip supports the checking of dependencies with the new list command. In contrast to pip freeze, the primary idea of the list command is to list and analyze installed packages in a human readable (instead of machine parseable) format.

但自1.3版(于2013-03-07发行)以来,pip支持使用新的list命令检查依赖项。 与pip冻结相反, list命令的主要思想是以人类可读(而不是机器可解析)的格式列出和分析已安装的软件包。

$ pip freezedjango-unchained==1.0.1requests==1.1.0wsgiref==0.1.2
$ pip listdjango-unchained (1.0.1)requests (1.1.0)wsgiref (0.1.2)

The best thing about the new command is that you can check packages for updates and list only specific packages:

关于new命令的最好的事情是您可以检查软件包的更新并仅列出特定的软件包:

List Options:  -o, --outdated     List outdated packages (excluding editables)  -u, --uptodate     List uptodate packages (excluding editables)  -e, --editable     List editable projects.  -l, --local        If in a virtualenv that has global access, do not list globally-installed packages.

In summary, you can now show outdated dependencies with a single pip command:

总之,您现在可以使用单个pip命令显示过时的依赖项:

$ pip list --outdatedrequests (Current: 1.1.0 Latest: 1.2.0)

翻译自:

pip 查看依赖关系

转载地址:http://ljqwd.baihongyu.com/

你可能感兴趣的文章
HDU 1829/POJ 2492 A Bug's Life
查看>>
CKplayer:视频推荐和分享插件设置
查看>>
CentOS系统将UTC时间修改为CST时间
查看>>
redis常见面试题
查看>>
导航控制器的出栈
查看>>
玩转CSS3,嗨翻WEB前端,CSS3伪类元素详解/深入浅出[原创][5+3时代]
查看>>
iOS 9音频应用播放音频之播放控制暂停停止前进后退的设置
查看>>
Delphi消息小记
查看>>
HNOI2016
查看>>
JVM介绍
查看>>
将PHP数组输出为HTML表格
查看>>
Java中的线程Thread方法之---suspend()和resume() 分类: ...
查看>>
经典排序算法回顾:选择排序,快速排序
查看>>
BZOJ2213 [Poi2011]Difference 【乱搞】
查看>>
c# 对加密的MP4文件进行解密
查看>>
AOP面向切面编程C#实例
查看>>
Win form碎知识点
查看>>
避免使用不必要的浮动
查看>>
第一节:ASP.NET开发环境配置
查看>>
sqlserver database常用命令
查看>>