How to list all installed packages and their versions in Python?

前端 未结 12 2008
灰色年华
灰色年华 2020-12-12 10:07

Is there a way in Python to list all installed packages and their versions?

I know I can go inside python/Lib/site-packages and see what files and direc

12条回答
  •  悲哀的现实
    2020-12-12 10:37

    You can try : Yolk

    For install yolk, try:

    easy_install yolk
    

    Yolk is a Python tool for obtaining information about installed Python packages and querying packages avilable on PyPI (Python Package Index).

    You can see which packages are active, non-active or in development mode and show you which have newer versions available by querying PyPI.

提交回复
热议问题