{"id":6616,"date":"2017-05-26T09:56:14","date_gmt":"2017-05-26T16:56:14","guid":{"rendered":"http:\/\/www.yuleshow.com\/?p=6616"},"modified":"2017-05-26T09:56:14","modified_gmt":"2017-05-26T16:56:14","slug":"clean-up-python-versions-on-macos","status":"publish","type":"post","link":"https:\/\/www.yuleshow.com\/?p=6616","title":{"rendered":"Clean up Python versions on MacOS"},"content":{"rendered":"<p>I have 2.7.10, 2.7.13, 2.6, 3.4, 3.5, 3.6 python versions on my MacOS, I don&#8217;t even know which one I called. Of course, I can use<\/p>\n<pre>which python<\/pre>\n<p>to find out.<br \/>\nHere is the way to make it clean, actually it is the way to make it for sure and clear.<br \/>\n1. Update the python by homebrew (in case you don&#8217;t have it, use following line under terminal:<\/p>\n<pre>\/usr\/bin\/ruby -e \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install)\"<\/pre>\n<p>Then:<\/p>\n<pre>brew install python<\/pre>\n<p>2. Put the following four lines to ~\/.profile<\/p>\n<pre>PATH=\"\/usr\/local:${PATH}\"\nexport PATH\nPATH=\"\/usr\/local\/bin:${PATH}\"\nexport PATH<\/pre>\n<p>3. You Done!<br \/>\nIs that easy?<br \/>\n(reference: https:\/\/dzone.com\/articles\/good-clean-python-install)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have 2.7.10, 2.7.13, 2.6, 3.4, 3.5, 3.6 python versions on my MacOS, I don&#8217;t even know which one I called. Of course, I can use which python to find out. Here is the way to make it clean, actually it is the way to make it for sure and clear. 1. Update the python [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[44],"tags":[],"class_list":["post-6616","post","type-post","status-publish","format-standard","hentry","category-mac-ios"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/6616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6616"}],"version-history":[{"count":0,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=\/wp\/v2\/posts\/6616\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yuleshow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}