`requirements.txt` 依赖,只获取高级依赖
`requirements.txt` dependencies, getting only high level dependencies
我有三个 python 项目 A、B 和 C。每个项目都相互依赖。
How can I now "clean up" my requirements.txt that only the high level
dependencies that are required at this "level" are there.
例子
A要求:
boto3==1.2.4
B要求:
A==0.0.1
boto3==1.2.4
cookiecutter==1.4.0
C要求:
B==0.0.1
懒鬼==0.9.9
boto3==1.2.4
cookiecutter==1.4.0
粗体包是应该过滤掉的包。
pipdeptree
可以显示依赖关系树,并且对于给定的包,告诉您哪些其他包依赖它。
我有三个 python 项目 A、B 和 C。每个项目都相互依赖。
How can I now "clean up" my requirements.txt that only the high level dependencies that are required at this "level" are there.
例子
A要求:
boto3==1.2.4
B要求:
A==0.0.1
boto3==1.2.4
cookiecutter==1.4.0
C要求:
B==0.0.1
懒鬼==0.9.9
boto3==1.2.4
cookiecutter==1.4.0
粗体包是应该过滤掉的包。
pipdeptree
可以显示依赖关系树,并且对于给定的包,告诉您哪些其他包依赖它。