{"id":937,"date":"2012-04-02T08:38:30","date_gmt":"2012-04-02T13:38:30","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=937"},"modified":"2012-04-02T08:38:30","modified_gmt":"2012-04-02T13:38:30","slug":"show-version-of-python","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2012\/04\/show-version-of-python\/","title":{"rendered":"Show Version of Python"},"content":{"rendered":"<p>I needed to know what version of python I was running, so I immediately tried:<br \/>\npython -v<\/p>\n<p>No dice.<\/p>\n<p>What does get me the version:<br \/>\npython<br \/>\nimport sys<br \/>\nprint sys.version<\/p>\n<p>And then I noticed that as soon as I get into Python the version is displayed.  Palmface.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2012\/04\/python.png\" alt=\"\" title=\"python\" width=\"571\" height=\"114\" class=\"alignnone size-full wp-image-938\" srcset=\"https:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2012\/04\/python.png 571w, https:\/\/it.thelibrarie.com\/weblog\/wp-content\/uploads\/2012\/04\/python-300x59.png 300w\" sizes=\"auto, (max-width: 571px) 100vw, 571px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to know what version of python I was running, so I immediately tried: python -v No dice. What does get me the version: python import sys print sys.version And then I noticed that as soon as I get into Python the version is displayed. Palmface.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-937","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=937"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/937\/revisions"}],"predecessor-version":[{"id":939,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/937\/revisions\/939"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}