简体   繁体   English

如何创建仅由 pip 安装的 python package 列表

[英]how to create python package list installed by pip only

and sorry in advance if this question is duplicated.如果重复此问题,请提前致歉。

If I want to create all installed python package list, I can easily create with pip list or pip freeze .如果我想创建所有已安装的 python package 列表,我可以使用pip listpip freeze轻松创建。

Some of them are installed by pip install , and some of them are installed by OS's package manager like apt , yum , pacman .其中一些由pip install ,其中一些由操作系统的 package 管理器安装,如aptyumpacman

Can I create the package list separately?我可以单独创建 package 列表吗? if yes please let me know, thanks.如果是,请告诉我,谢谢。

On Debian based systems using dpkg -l you can list all the packages installed, with version, architecture, description.在基于 Debian 的系统上,使用dpkg -l你可以列出所有安装的包,包括版本、架构、描述。 Based on the package manager this would change, if it is a Red hat based system rpm -qa .基于 package 管理器,如果它是基于 Red Hat 的系统rpm -qa ,这将会改变。

To get the list of packages that were installed by pip pip list获取由 pip pip list安装的软件包列表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM