How to list dependencies for a python library without installing?
问题 Is there a way to get a list of dependencies for a given python package without installing it first? I can currently get a list of requirements, but it requires installing the packages. For example, I can use pip to show basic requirements info, but it doesn't include version information: $ pip show pytest Name: pytest Version: 3.0.6 ... Requires: colorama, setuptools, py I've tried a library called pipdeptree that includes much better output on requirements, but it also requires installation