{"id":592,"date":"2020-09-23T00:04:43","date_gmt":"2020-09-22T15:04:43","guid":{"rendered":"http:\/\/kei0310.info\/?p=592"},"modified":"2020-09-23T00:09:27","modified_gmt":"2020-09-22T15:09:27","slug":"post-592","status":"publish","type":"post","link":"http:\/\/kei0310.info\/?p=592","title":{"rendered":"Compute Engine(GCE)\u306bpyenv\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"\n<h2>pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code># pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ git clone git:\/\/github.com\/yyuu\/pyenv.git ~\/.pyenv\n\n# \u74b0\u5883\u8a2d\u5b9a\n$ echo 'export PYENV_ROOT=\"$HOME\/.pyenv\"' >> ~\/.bash_profile\n$ echo 'export PATH=\"$PYENV_ROOT\/bin:$PATH\"' >> ~\/.bash_profile\n$ echo 'eval \"$(pyenv init -)\"' >> ~\/.bash_profile\n\n# \u74b0\u5883\u8a2d\u5b9a\u306e\u53cd\u6620\n$ source ~\/.bash_profile<\/code><\/pre>\n\n\n\n<h2>\u5fc5\u8981\u306aOS\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/pyenv\/pyenv\/wiki\/Common-build-problems\">https:\/\/github.com\/pyenv\/pyenv\/wiki\/Common-build-problems<\/a><\/p>\n\n\n\n<p>\u3053\u3053\u3092\u53c2\u7167\u3057\u3066\u3001Compute Engine\u306eOS\u306b\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br>\u79c1\u306e\u5834\u5408\u306f\u3001CentOS7\u3060\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u3002<br><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo yum install @development zlib-devel bzip2 bzip2-devel readline-devel sqlite \\\nsqlite-devel openssl-devel xz xz-devel libffi-devel findutils<\/code><\/pre>\n\n\n\n<h2>python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n\n\n\n<p>\u79c1\u306e\u5834\u5408\u306fpython3.8.5\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ pyenv install 3.8.5\n$ pyenv global 3.8.5\n$ python -V\nPython 3.8.5\n\n# \u5207\u308a\u66ff\u308f\u3089\u306a\u3044\u5834\u5408\u306f\u3001.bash_profile\u3092\u518d\u53cd\u6620\u3057\u3066\u307f\u308b\u3068\u3088\u3044\n$ source ~\/.bash_profile<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb \u5fc5\u8981\u306aOS\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb https:\/\/github.com\/pyenv\/pyenv\/wiki\/Common-build-problems \u3053\u3053\u3092\u53c2\u7167\u3057\u3066\u3001Compute Engin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[212,195],"tags":[223,224,222,221,227,220,200,225,226],"_links":{"self":[{"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/posts\/592"}],"collection":[{"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/kei0310.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=592"}],"version-history":[{"count":5,"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":597,"href":"http:\/\/kei0310.info\/index.php?rest_route=\/wp\/v2\/posts\/592\/revisions\/597"}],"wp:attachment":[{"href":"http:\/\/kei0310.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kei0310.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kei0310.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}