{"id":1648,"date":"2018-03-15T19:41:28","date_gmt":"2018-03-15T10:41:28","guid":{"rendered":"http:\/\/www.chihayafuru.jp\/tech\/?p=1648"},"modified":"2018-03-15T19:41:28","modified_gmt":"2018-03-15T10:41:28","slug":"python-2-%e3%81%a8-python-3-%e3%82%92%e5%85%b1%e5%ad%98","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/1648","title":{"rendered":"python 2 \u3068 python 3 \u3092\u5171\u5b58"},"content":{"rendered":"<p>pyenv\u3092\u5229\u7528\u3059\u308b<\/p>\n<h2>pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ brew install pyenv<\/pre>\n<h3>PATH\u306e\u8ffd\u52a0 (.bash_profile\u306a\u3069)<\/h3>\n<pre>export PATH=$HOME\/.pyenv\/shims:$PATH<\/pre>\n<p>&nbsp;<\/p>\n<h2>pyenv\u306e\u4f7f\u3044\u65b9<\/h2>\n<h3>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u4e00\u89a7<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ pyenv install --list<\/pre>\n<h3>Pythons\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ pyenv install &lt;version name&gt;<\/pre>\n<h3>\u30b0\u30ed\u30fc\u30d0\u30eb\u3067\u4f7f\u7528\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5207\u308a\u66ff\u3048<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ pyenv global &lt;version name&gt;<\/pre>\n<h3>\u30ea\u30cf\u30c3\u30b7\u30e5<\/h3>\n<pre class=\"lang:default highlight:0 decode:true \" >$ pyenv rehash<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pyenv\u3092\u5229\u7528\u3059\u308b pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb $ brew install pyenv PATH\u306e\u8ffd\u52a0 (.bash_profile\u306a\u3069) export PATH=$HOME\/.pyenv\/shims:$PATH &#038;n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[52],"class_list":["post-1648","post","type-post","status-publish","format-standard","hentry","category-memo","tag-python"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1648","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=1648"}],"version-history":[{"count":4,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1648\/revisions"}],"predecessor-version":[{"id":1652,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/1648\/revisions\/1652"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=1648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=1648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=1648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}