{"id":3000,"date":"2025-07-10T12:24:21","date_gmt":"2025-07-10T03:24:21","guid":{"rendered":"https:\/\/www.blowfish.co.jp\/?p=3000"},"modified":"2025-07-10T12:24:21","modified_gmt":"2025-07-10T03:24:21","slug":"amazon-linux-2023%e3%81%b8%e3%81%aepyenv-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=3000","title":{"rendered":"Amazon Linux 2023\u3078\u306epyenv \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5"},"content":{"rendered":"\n<p>1.  \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ curl -fsSL https:\/\/pyenv.run | bash<\/code><\/pre>\n\n\n\n<p>2. ~\/.bashrc \u3078Path\u3092\u8a2d\u5b9a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo 'export PYENV_ROOT=\"$HOME\/.pyenv\"' &gt;&gt; ~\/.bashrc\n$ echo '&#91;&#91; -d $PYENV_ROOT\/bin ]] &amp;&amp; export PATH=\"$PYENV_ROOT\/bin:$PATH\"' &gt;&gt; ~\/.bashrc\n$ echo 'eval \"$(pyenv init - bash)\"' &gt;&gt; ~\/.bashrc<\/code><\/pre>\n\n\n\n<p>3. ~\/.bash_profile\u3078Path\u3092\u8a2d\u5b9a\u3059\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ echo 'export PYENV_ROOT=\"$HOME\/.pyenv\"' &gt;&gt; ~\/.bash_profile\n$ echo '&#91;&#91; -d $PYENV_ROOT\/bin ]] &amp;&amp; export PATH=\"$PYENV_ROOT\/bin:$PATH\"' &gt;&gt; ~\/.bash_profile\n$ echo 'eval \"$(pyenv init - bash)\"' &gt;&gt; ~\/.bash_profile<\/code><\/pre>\n\n\n\n<p>4. \u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ exec \"$SHELL\"<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1. \u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3002 2. ~\/.bashrc \u3078Path\u3092\u8a2d\u5b9a\u3059\u308b 3. ~\/.bash_profile\u3078Path\u3092\u8a2d\u5b9a\u3059\u308b 4. \u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[74,45,4],"tags":[],"class_list":["post-3000","post","type-post","status-publish","format-standard","hentry","category-linux","category-python","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3000"}],"version-history":[{"count":2,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3000\/revisions"}],"predecessor-version":[{"id":3006,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/3000\/revisions\/3006"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}