{"id":162,"date":"2013-08-05T09:42:23","date_gmt":"2013-08-05T14:42:23","guid":{"rendered":"http:\/\/cartometric.com\/blog\/?p=162"},"modified":"2014-09-25T13:29:56","modified_gmt":"2014-09-25T18:29:56","slug":"install-httplib2-to-your-preferred-python-runtime-after-arcgis-unceremoniously-hijacks-the-first-attempt","status":"publish","type":"post","link":"https:\/\/elrobis.com\/blog\/2013\/08\/05\/install-httplib2-to-your-preferred-python-runtime-after-arcgis-unceremoniously-hijacks-the-first-attempt\/","title":{"rendered":"Install httplib2 to your Preferred Python Runtime after ArcGIS Unceremoniously Hijacks the First Attempt"},"content":{"rendered":"<p>We&#8217;re going to use Google Maps Engine for some stuff, and so I thought I&#8217;d throw my first codes at it using Python. Well.. Google&#8217;s Python example requires the httplib2 library, so I needed to install that. When I did&#8212;following the library&#8217;s download\/instructions&#8212;for some reason, the library went into service against ArcGIS&#8217;s embedded Python runtime, rather than my favored 2.7 instance, which I use for every single thing.<\/p>\n<p>::grimaces::<\/p>\n<p>To fix this, I just ensured the new library&#8217;s setup.py script was called from my preferred Python runtime rather than let Windows, or some black magic, decide which instance it should integrate with httplib2.<\/p>\n<p>Breaking it down:<\/p>\n<p>1) cd into the unpacked httplib2 directory:<\/p>\n<p><code>C:\\>cd C:\\Users\\elijah\\Downloads\\httplib2-0.8<\/code><\/p>\n<p>2) Next, you can qualify which Python runtime you want to execute the supplied setup.py install script&#8212;in my case, this worked to install httplib2 to that specific runtime. This was the exact command I used:<\/p>\n<p><code>C:\\Users\\elijah\\Downloads\\httplib2-0.8>C:\\Python27\\python.exe setup.py install<\/code><\/p>\n<p>Voila! Now when I pull up IDLE, relative to my preferred instance of Python 2.7, I can import httplib2 without issues.<\/p>\n<p>It didn&#8217;t take too long to figure this out&#8212;but it seemed like an easy post should someone else be stumped and on the wrong foot.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re going to use Google Maps Engine for some stuff, and so I thought I&#8217;d throw my first codes at it using Python. Well.. Google&#8217;s Python example requires the httplib2 library, so I needed to install that. When I did&#8212;following the library&#8217;s download\/instructions&#8212;for some reason, the library went into service against ArcGIS&#8217;s embedded Python runtime, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[43],"tags":[9],"_links":{"self":[{"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/posts\/162"}],"collection":[{"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/comments?post=162"}],"version-history":[{"count":3,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/posts\/162\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/media?parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/categories?post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elrobis.com\/blog\/wp-json\/wp\/v2\/tags?post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}