Identifying the dependency relationship for python packages installed with pip

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 Landscape-Client==11.01 M2Crypto==0.20.1 PAM==0.4.2 PIL==1.1.7 PyYAML==3.09 Twisted-Core==10.2.0 Twisted-Web==10.2.0 (etc.) Is there a way for me to determine why pip installed these particular dependent packages? In other words, how do I determine the … Read more

Stop pip from failing on single package when installing with requirements.txt

I am installing packages from requirements.txt pip install -r requirements.txt The requirements.txt file reads: Pillow lxml cssselect jieba beautifulsoup nltk lxml is the only package failing to install and this leads to everything failing (expected results as pointed out by larsks in the comments). However, after lxml fails pip still runs through and downloads the … Read more