How do I list the dependencies for a package using pip?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Note that this answer from 2012 is out of date. First, the workaround, which the answer already said you probably shouldn’t do in 2012, now you can’t do it. If you want a similar workaround, you could use
pip download, but it’s even less likely to be what you want. Especially sincepip showhas been improved. Fortunately, the question has been marked as a dup of a later question, so there’s no reason to read this answer except for historical purposes.You can’t, at least not directly.
You can import the pip module in your own code and download the requirements file and then iterate through it. Or, from the command line, you can
pip install --no-install --verbose.But really, unless this is something you need to automate, it’s probably easier to just go to http://pypi.python.org/ and search for the package there instead of using pip.