I need something like the following:
pip showrequirements tensorflow
This would return something that allows me to parse the names of the required packages and the required versions:
astor>0.6, tensorboard>1.0.11, etc.
pip is getting this information in some form during the install and download command. I can see where it's happening in the code... but before I hack my way to using pip's internal code, is there any easy API or existing library that can do this?
edit: I cannot install the package to see this, so pip show won't work. One (hacky) solution is parsing the output of pip download.
Thanks!
curl -L 'https://pypi.python.org/pypi/tensorflow/json' | jq '.info.requires_dist'
– Carboloy