{"id":8,"date":"2009-11-08T13:58:28","date_gmt":"2009-11-08T19:58:28","guid":{"rendered":"http:\/\/www.insomnihack.com\/?p=8"},"modified":"2009-12-16T23:30:18","modified_gmt":"2009-12-17T05:30:18","slug":"virtualenv-useful-on-mac-not-so-much-on-pc","status":"publish","type":"post","link":"http:\/\/www.insomnihack.com\/?p=8","title":{"rendered":"Virtualenv useful on Mac, not so much on PC"},"content":{"rendered":"<p><!-- BODY { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } P { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } DIV { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } TD { FONT-FAMILY:Tahoma; FONT-SIZE:10pt } -->Well, after wrestling with <a title=\"Virtualenv on PyPI\" href=\"http:\/\/pypi.python.org\/pypi\/virtualenv\">virtualenv<\/a> on both the PC and Mac, I think I&#8217;m going to stick with it for my Mac but bail on it for PC python work.<\/p>\n<div class=\"mceTemp\">\n<dl id=\"attachment_11\" class=\"wp-caption   alignleft\" style=\"width: 363px;\">\n<dt class=\"wp-caption-dt\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-11\" title=\"Mac\/PC Virtualenv\" src=\"http:\/\/www.insomnihack.com\/wp-content\/uploads\/macpcvirtenv.jpg\" alt=\"Mac vs PC on Virtualenv\" width=\"353\" height=\"264\" srcset=\"http:\/\/www.insomnihack.com\/wp-content\/uploads\/macpcvirtenv.jpg 353w, http:\/\/www.insomnihack.com\/wp-content\/uploads\/macpcvirtenv-300x224.jpg 300w\" sizes=\"(max-width: 353px) 100vw, 353px\" \/><\/dt>\n<\/dl>\n<\/div>\n<p>I really like it on the Mac because now that I&#8217;ve moved on to Snow Leopard and Python 2.6, I&#8217;m not using a nice isolated environment like the one <a title=\"Enthought Python Distribution\" href=\"http:\/\/www.enthought.com\/products\/epd.php\">EPD<\/a> provided me with. Even though I&#8217;m using <a title=\"MacPorts\" href=\"http:\/\/www.macports.org\/\">MacPorts<\/a> Python 2.6.x, packages get installed into the same location as Snow Leopard&#8217;s Python 2.6.1. Since python packages don&#8217;t come with an uninstall option, and because I haven&#8217;t a clue how to restore Snow Leopard&#8217;s Python if I end up adding too much 3rd party gorp, virtualenv seems the prudent course for development on OSX. The only 3rd party libraries I have installed in the main python site-packages folder are <a title=\"Setuptools on PyPI\" href=\"http:\/\/pypi.python.org\/pypi\/setuptools\">setuptools<\/a>, virtualenv, <a title=\"Pip on PyPI\" href=\"http:\/\/pypi.python.org\/pypi\/pip\">pip<\/a>, <a title=\"IPython Homepage\" href=\"http:\/\/ipython.scipy.org\/moin\/\">ipython<\/a>, and <a title=\"Yolk on PyPI\" href=\"http:\/\/pypi.python.org\/pypi\/yolk\/\">yolk<\/a>. Everything else (so far) is getting put into a virtual environment. Also, now that I&#8217;ve figured out how to get <a title=\"IPython and virtualenv\" href=\"http:\/\/blog.ufsoft.org\/2009\/1\/29\/ipython-and-virtualenv\">virtualenv and ipython to play nice<\/a>, isolated development is running smooth as silk.<\/p>\n<div>On Windows, I&#8217;ve run into issues related to path names with spaces, and other minor problems. Since I control where python gets installed on Windows, and since python is fairly self contained, its easy to just blow out my install and start over if I add so much cruft that python blows up on me. There&#8217;s not much incentive at this time to get virtualenv configuration debugged on my PC.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>After wrestling with virtualenv on both the PC and Mac, I think I&#8217;m going to stick with it for my Mac but bail on it for PC python work.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[9,7,6,8],"_links":{"self":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts\/8"}],"collection":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":0,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.insomnihack.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}