{"id":4630,"date":"2019-02-11T13:19:23","date_gmt":"2019-02-11T18:19:23","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=4630"},"modified":"2019-02-11T13:19:23","modified_gmt":"2019-02-11T18:19:23","slug":"list-locally-installed-python-modules","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=4630","title":{"rendered":"List locally installed Python modules"},"content":{"rendered":"<p>I&#8217;ve been helping someone else get an Azure bot running on their system &#8230; which involves a lot of &#8220;what do I have that you don&#8217;t&#8221; &#8230; for which listing locally installed python modules is incredibly helpful.<\/p>\n<p>python -c &#8220;import pkg_resources; print([(d.project_name, d.version) for d in pkg_resources.working_set])&#8221;<\/p>\n<p>&nbsp;<\/p>\n<p>[lisa@cent6 ljr]# python -c &#8220;import pkg_resources; print([(d.project_name, d.version) for d in pkg_resources.working_set])&#8221;<br \/>\n[(&#8216;scipy&#8217;, &#8216;1.2.0&#8217;), (&#8216;scikit-learn&#8217;, &#8216;0.20.2&#8217;), (&#8216;PyYAML&#8217;, &#8216;3.13&#8217;), (&#8216;PyMySQL&#8217;, &#8216;0.9.3&#8217;), (&#8216;pycares&#8217;, &#8216;2.4.0&#8217;), (&#8216;numpy&#8217;, &#8216;1.16.0&#8217;), (&#8216;multidict&#8217;, &#8216;4.5.2&#8217;), (&#8216;Cython&#8217;, &#8216;0.29.4&#8217;), (&#8216;coverage&#8217;, &#8216;4.5.2&#8217;), (&#8216;aiohttp&#8217;, &#8216;3.0.9&#8217;), (&#8216;yarl&#8217;, &#8216;1.3.0&#8217;), (&#8216;wrapt&#8217;, &#8216;1.11.1&#8217;), (&#8216;vcrpy&#8217;, &#8216;2.0.1&#8217;), (&#8216;typing&#8217;, &#8216;3.6.6&#8217;), (&#8216;sklearn&#8217;, &#8216;0.0&#8217;), (&#8216;singledispatch&#8217;, &#8216;3.4.0.3&#8217;), (&#8216;sharepy&#8217;, &#8216;1.3.0&#8217;), (&#8216;requests-toolbelt&#8217;, &#8216;0.9.1&#8217;), (&#8216;requests-oauthlib&#8217;, &#8216;1.2.0&#8217;), (&#8216;pytest&#8217;, &#8216;4.1.1&#8217;), (&#8216;pytest-cov&#8217;, &#8216;2.6.1&#8217;), (&#8216;pytest-asyncio&#8217;, &#8216;0.10.0&#8217;), (&#8216;PyJWT&#8217;, &#8216;1.7.1&#8217;), (&#8216;py&#8217;, &#8216;1.7.0&#8217;), (&#8216;pluggy&#8217;, &#8216;0.8.1&#8217;), (&#8216;oauthlib&#8217;, &#8216;3.0.1&#8217;), (&#8216;nltk&#8217;, &#8216;3.4&#8217;), (&#8216;msrest&#8217;, &#8216;0.4.29&#8217;), (&#8216;more-itertools&#8217;, &#8216;5.0.0&#8217;), (&#8216;isodate&#8217;, &#8216;0.6.0&#8217;), (&#8216;ConfigArgParse&#8217;, &#8216;0.14.0&#8217;), (&#8216;certifi&#8217;, &#8216;2018.11.29&#8217;), (&#8216;botframework-connector&#8217;, &#8216;4.0.0a6&#8217;), (&#8216;botbuilder-schema&#8217;, &#8216;4.0.0a6&#8217;), (&#8216;botbuilder-azure&#8217;, &#8216;4.0.0a6&#8217;), (&#8216;azure-devtools&#8217;, &#8216;1.1.1&#8217;), (&#8216;azure-cosmos&#8217;, &#8216;3.0.0&#8217;), (&#8216;attrs&#8217;, &#8216;18.2.0&#8217;), (&#8216;atomicwrites&#8217;, &#8216;1.2.1&#8217;), (&#8216;async-timeout&#8217;, &#8216;2.0.1&#8217;), (&#8216;aiodns&#8217;, &#8216;1.2.0&#8217;), (&#8216;botbuilder-core&#8217;, &#8216;4.0.0a6&#8217;), (&#8216;systemd-python&#8217;, &#8216;234&#8217;), (&#8216;smartcols&#8217;, &#8216;0.3.0&#8217;), (&#8216;setools&#8217;, &#8216;4.1.1&#8217;), (&#8216;rpm&#8217;, &#8216;4.14.2.1&#8217;), (&#8216;gpg&#8217;, &#8216;1.11.1&#8217;), (&#8216;cryptography&#8217;, &#8216;2.3&#8217;), (&#8216;cffi&#8217;, &#8216;1.11.5&#8217;), (&#8216;urllib3&#8217;, &#8216;1.24.1&#8217;), (&#8216;SSSDConfig&#8217;, &#8216;2.0.0&#8217;), (&#8216;slip&#8217;, &#8216;0.6.4&#8217;), (&#8216;slip.dbus&#8217;, &#8216;0.6.4&#8217;), (&#8216;six&#8217;, &#8216;1.11.0&#8217;), (&#8216;setuptools&#8217;, &#8216;40.4.3&#8217;), (&#8216;sepolicy&#8217;, &#8216;1.1&#8217;), (&#8216;requests&#8217;, &#8216;2.20.0&#8217;), (&#8216;PySocks&#8217;, &#8216;1.6.8&#8217;), (&#8216;pyparsing&#8217;, &#8216;2.2.0&#8217;), (&#8216;pyOpenSSL&#8217;, &#8216;18.0.0&#8217;), (&#8216;pykickstart&#8217;, &#8216;3.16&#8217;), (&#8216;PyGObject&#8217;, &#8216;3.30.4&#8217;), (&#8216;pycparser&#8217;, &#8216;2.14&#8217;), (&#8216;ply&#8217;, &#8216;3.9&#8217;), (&#8216;pip&#8217;, &#8216;18.1&#8217;), (&#8216;ordered-set&#8217;, &#8216;2.0.2&#8217;), (&#8216;isc&#8217;, &#8216;2.0&#8217;), (&#8216;IPy&#8217;, &#8216;0.81&#8217;), (&#8216;iotop&#8217;, &#8216;0.6&#8217;), (&#8216;iniparse&#8217;, &#8216;0.4&#8217;), (&#8216;idna&#8217;, &#8216;2.7&#8217;), (&#8216;distro&#8217;, &#8216;1.3.0&#8217;), (&#8216;decorator&#8217;, &#8216;4.3.0&#8217;), (&#8216;chardet&#8217;, &#8216;3.0.4&#8217;), (&#8216;asn1crypto&#8217;, &#8216;0.24.0&#8217;)]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been helping someone else get an Azure bot running on their system &#8230; which involves a lot of &#8220;what do I have that you don&#8217;t&#8221; &#8230; for which listing locally installed python modules is incredibly helpful. python -c &#8220;import pkg_resources; print([(d.project_name, d.version) for d in pkg_resources.working_set])&#8221; &nbsp; [lisa@cent6 ljr]# python -c &#8220;import pkg_resources; print([(d.project_name, &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[752,664],"class_list":["post-4630","post","type-post","status-publish","format-standard","hentry","category-coding","tag-pip","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4630"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4630\/revisions"}],"predecessor-version":[{"id":4631,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4630\/revisions\/4631"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}