{"id":162,"date":"2017-09-28T14:19:44","date_gmt":"2017-09-28T14:19:44","guid":{"rendered":"https:\/\/chkr.at\/wordpress\/?p=162"},"modified":"2017-09-28T14:21:57","modified_gmt":"2017-09-28T14:21:57","slug":"pipdeptree-find-out-why-a-pip-package-was-installed","status":"publish","type":"post","link":"https:\/\/chkr.at\/wordpress\/?p=162","title":{"rendered":"pipdeptree &#8211; find out why a pip package was installed"},"content":{"rendered":"<p>Ever wondered why a certain python package was installed?<\/p>\n<p>E.g., when you are installing <code>WeasyPrint<\/code> you will find that it installs a lot of other libraries, such as <code>cffi<\/code>, <code>cariocffi<\/code> and <code>html5lib<\/code>. With <code>pipdeptree<\/code> you can visualize this \ud83d\ude42<\/p>\n<p><code>pip install pipdeptree<\/code><\/p>\n<p><code>pipdeptree<\/code><\/p>\n<pre>WeasyPrint==0.40\r\n  - cairocffi [required: &gt;=0.5, installed: 0.8.0]\r\n    - cffi [required: &gt;=1.1.0, installed: 1.11.0]\r\n      - pycparser [required: Any, installed: 2.18]\r\n  - CairoSVG [required: &gt;=1.0.20, installed: 2.0.3]\r\n    - cairocffi [required: Any, installed: 0.8.0]\r\n      - cffi [required: &gt;=1.1.0, installed: 1.11.0]\r\n        - pycparser [required: Any, installed: 2.18]\r\n    - cssselect [required: Any, installed: 1.0.1]\r\n    - lxml [required: Any, installed: 3.8.0]\r\n    - pillow [required: Any, installed: 4.2.1]\r\n      - olefile [required: Any, installed: 0.44]\r\n    - tinycss [required: Any, installed: 0.4]\r\n  - cffi [required: &gt;=0.6, installed: 1.11.0]\r\n    - pycparser [required: Any, installed: 2.18]\r\n  - cssselect2 [required: &gt;=0.1, installed: 0.2.0]\r\n    - tinycss2 [required: Any, installed: 0.6.0]\r\n      - webencodings [required: &gt;=0.4, installed: 0.5.1]\r\n  - html5lib [required: &gt;=0.999999999, installed: 0.999999999]\r\n    - setuptools [required: &gt;=18.5, installed: 36.5.0]\r\n    - six [required: Any, installed: 1.11.0]\r\n    - webencodings [required: Any, installed: 0.5.1]\r\n  - Pyphen [required: &gt;=0.8, installed: 0.9.4]\r\n  - tinycss2 [required: &gt;=0.5, installed: 0.6.0]\r\n    - webencodings [required: &gt;=0.4, installed: 0.5.1]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Ever wondered why a certain python package was installed? E.g., when you are installing WeasyPrint you will find that it installs a lot of other libraries, such as cffi, cariocffi and html5lib. With pipdeptree you can visualize this \ud83d\ude42 pip install pipdeptree pipdeptree WeasyPrint==0.40 - cairocffi [required: &gt;=0.5, installed: 0.8.0] - cffi [required: &gt;=1.1.0, installed: <a class=\"read-more\" href=\"https:\/\/chkr.at\/wordpress\/?p=162\">...continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,6,17],"tags":[],"_links":{"self":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/162"}],"collection":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":6,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/168"}],"wp:attachment":[{"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chkr.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}