更新时间:2022-12-13 09:55:16
如果您已进行pip安装,并且想查看安装程序工具已安装了哪些软件包,则可以简单地称呼它:
If you have pip install and you want to see what packages have been installed with your installer tools you can simply call this:
pip freeze
它还将包括已安装软件包的版本号.
It will also include version numbers for the installed packages.
更新
pip已更新,可以通过调用以下命令来产生与pip freeze
相同的输出:
pip has been updated to also produce the same output as pip freeze
by calling:
pip list
注意
pip list
的输出采用不同的格式,因此,如果您有一些shell脚本来解析freeze
的输出(可能是获取版本号),并且想要更改脚本以调用list
,则将需要更改您的解析代码.
The output from pip list
is formatted differently, so if you have some shell script that parses the output (maybe to grab the version number) of freeze
and want to change your script to call list
, you'll need to change your parsing code.