{"id":293,"date":"2016-07-15T19:24:44","date_gmt":"2016-07-15T19:24:44","guid":{"rendered":"http:\/\/blogs.harvard.edu\/rprasad\/?p=293"},"modified":"2016-07-15T19:26:09","modified_gmt":"2016-07-15T19:26:09","slug":"virtualenv-with-python-3","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/rprasad\/2016\/07\/15\/virtualenv-with-python-3\/","title":{"rendered":"Virtualenv with Python 3+"},"content":{"rendered":"<p>from: Stackoverflow <a href=\"http:\/\/stackoverflow.com\/questions\/1534210\/use-different-python-version-with-virtualenv\">Use different Python version with virtualenv<\/a><\/p>\n<p>(1) Locate your python<br \/>\n<code><\/p>\n<blockquote><p>\n  which python3<br \/>\n  \/Library\/Frameworks\/Python.framework\/Versions\/3.4\/bin\/python3<br \/>\n  <\/code>\n<\/p><\/blockquote>\n<p>(2) Make your virtualenv (via <a href=\"http:\/\/virtualenvwrapper.readthedocs.io\/en\/latest\/\">virtualenvwrapper<\/a>)<br \/>\n<code><\/p>\n<blockquote><p>\n  mkvirtualenv -p \/Library\/Frameworks\/Python.framework\/Versions\/3.4\/bin\/python3 [virtualenv name]<br \/>\n  <\/code>\n<\/p><\/blockquote>\n<p>Even if your default is python 2.7+, invoking the virtualenv will default to python 3+<\/p>\n","protected":false},"excerpt":{"rendered":"<p>from: Stackoverflow Use different Python version with virtualenv (1) Locate your python which python3 \/Library\/Frameworks\/Python.framework\/Versions\/3.4\/bin\/python3 (2) Make your virtualenv (via virtualenvwrapper) mkvirtualenv -p \/Library\/Frameworks\/Python.framework\/Versions\/3.4\/bin\/python3 [virtualenv name] Even if your default is python 2.7+, invoking the virtualenv will default to python 3+<\/p>\n","protected":false},"author":3875,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4JC3p-4J","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/users\/3875"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":2,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":295,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/posts\/293\/revisions\/295"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/rprasad\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}