{"id":1131,"date":"2020-04-29T19:15:57","date_gmt":"2020-04-29T10:15:57","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=1131"},"modified":"2020-04-29T19:16:10","modified_gmt":"2020-04-29T10:16:10","slug":"centos%e3%81%8b%e3%82%89anaconda%e3%82%a2%e3%83%b3%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/obenkyolab.com\/?p=1131","title":{"rendered":"CentOS\u304b\u3089Anaconda\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/obenkyolab.com\/?p=1131\/#%E7%9B%AE%E7%9A%84\" >\u76ee\u7684<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/obenkyolab.com\/?p=1131\/#Step1_pyenv%E3%81%AE%E5%89%8A%E9%99%A4\" >Step1 : .pyenv\u306e\u524a\u9664<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/obenkyolab.com\/?p=1131\/#Step2_bash_profile%E3%81%AEpath%E3%81%AE%E5%89%8A%E9%99%A4\" >Step2 : bash_profile\u306epath\u306e\u524a\u9664<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/obenkyolab.com\/?p=1131\/#Step3_conda%E3%81%AE%E5%89%8A%E9%99%A4\" >Step3 : .conda\u306e\u524a\u9664<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/obenkyolab.com\/?p=1131\/#Step4_%E7%A2%BA%E8%AA%8D\" >Step4 : \u78ba\u8a8d<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%9B%AE%E7%9A%84\"><\/span>\u76ee\u7684<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067CentOS7\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fpyenv\u3068anaconda\u306e\u74b0\u5883\u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-it-learning\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"zbezbVd4zB\"><a href=\"https:\/\/obenkyolab.com\/?p=43\">CentOS\u3078\u306eAnaconda\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;CentOS\u3078\u306eAnaconda\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb&#8221; &#8212; Obenkyolab\" src=\"https:\/\/obenkyolab.com\/?p=43&#038;embed=true#?secret=f5sXK2PjXk#?secret=zbezbVd4zB\" data-secret=\"zbezbVd4zB\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step1_pyenv%E3%81%AE%E5%89%8A%E9%99%A4\"><\/span>Step1 : .pyenv\u306e\u524a\u9664<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u81ea\u5206\u306e\u74b0\u5883\u3060\u3068\u3001HOME\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b.pyenv\u304c\u3042\u308b\u306e\u3067\u524a\u9664\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ rm -rf .pyenv\n<\/pre><\/div>\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step2_bash_profile%E3%81%AEpath%E3%81%AE%E5%89%8A%E9%99%A4\"><\/span>Step2 : bash_profile\u306epath\u306e\u524a\u9664<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>bash_profile\u306bpyenv\u306epath\u3092\u8ffd\u52a0\u3057\u3066\u3044\u305f\u306e\u3067\u305d\u308c\u3089\u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo vim .bash_profile\n<\/pre><\/div>\n\n\n<p>\u4ee5\u4e0b\u306e3\u884c\u3092\u524a\u9664\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nexport PYENV_ROOT=&quot;$HOME\/.pyenv&quot;\nexport PATH=&quot;$PYENV_ROOT\/bin:$PATH&quot;\neval &quot;$(pyenv init -)&quot;\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step3_conda%E3%81%AE%E5%89%8A%E9%99%A4\"><\/span>Step3 : .conda\u306e\u524a\u9664<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>HOME\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b.conda\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u3001\u304a\u305d\u3089\u304f\u3053\u308c\u3082\u4e0d\u8981\u306a\u306e\u3067\u3001\u524a\u9664\u3059\u308b\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n$ rm -rf .conda\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step4_%E7%A2%BA%E8%AA%8D\"><\/span>Step4 : \u78ba\u8a8d<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Python 2\u7cfb\u306b\u623b\u3063\u3066\u308b\u306e\u3067\u5927\u4e08\u592b\u305d\u3046\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ python\nPython 2.7.5 (default, Jul 13 2018, 13:06:57)\n&#x5B;GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2\n<\/pre><\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 \u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067CentOS7\u3078\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fpyenv\u3068ana&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":853,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=1131","footnotes":""},"categories":[7],"tags":[],"class_list":["post-1131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","ja"],"_links":{"self":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1131"}],"version-history":[{"count":5,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1131\/revisions"}],"predecessor-version":[{"id":1136,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/1131\/revisions\/1136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/media\/853"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}