Identifying the dependency relationship for python packages installed with pip

前端 未结 8 661
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 16:20

When I do a pip freeze I see large number of Python packages that I didn\'t explicitly install, e.g.

$ pip freeze
Cheetah==2.4.3
GnuPGInterface==0.3.2
Landsc         


        
8条回答
  •  春和景丽
    2020-11-29 16:56

    You may also use a one line command which pipes the packages in requirements to pip show.

    cut -d'=' -f1 requirements.txt | xargs pip show
    

提交回复
热议问题