{"id":43,"date":"2019-03-05T23:37:30","date_gmt":"2019-03-05T14:37:30","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=43"},"modified":"2022-01-07T06:49:54","modified_gmt":"2022-01-06T21:49:54","slug":"anconda%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=43","title":{"rendered":"CentOS\u3078\u306eAnaconda\u306e\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=43\/#%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=43\/#%E7%92%B0%E5%A2%83\" >\u74b0\u5883<\/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=43\/#Anaconda%E3%81%A8%E3%81%AF%EF%BC%9F\" >Anaconda\u3068\u306f\uff1f<\/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=43\/#pyenv%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/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=43\/#Anaconda3%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\" >Anaconda3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/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>python\u3067\u30c7\u30fc\u30bf\u5206\u6790\u3067\u304d\u308b\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u3002<br>\u305d\u306e\u305f\u3081\u3001\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u4e00\u901a\u308a\u305d\u308d\u3063\u3066\u308bAnaconda\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%92%B0%E5%A2%83\"><\/span>\u74b0\u5883<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>OS:CentOS7<br>Anaconda3\uff1a3-5.3.1<\/p>\n\n\n\n<iframe loading=\"lazy\" src=\"https:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?o=9&amp;p=13&amp;l=ur1&amp;category=timesalefestival202107&amp;banner=16WN7ATZTGV1G9T8XX82&amp;f=ifr&amp;linkID=6cb5494725bfcd0daba8c90b9c1c258b&amp;t=sebone0f-22&amp;tracking_id=sebone0f-22\" width=\"468\" height=\"60\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"><\/iframe>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Anaconda%E3%81%A8%E3%81%AF%EF%BC%9F\"><\/span>Anaconda\u3068\u306f\uff1f<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u6700\u8fd1\u306e\u6a5f\u68b0\u5b66\u7fd2\u3084\u30c7\u30fc\u30bf\u30a8\u30f3\u30b8\u30cb\u30a2\u30ea\u30f3\u30b0\u3067\u307e\u3059\u307e\u3059\u4f7f\u308f\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u3066\u3044\u308bpython\u306e\u8a00\u8a9e\u306eIDE\u3084\u3089\u30d1\u30c3\u30b1\u30fc\u30b8\u3084\u3089\u3001\u975e\u5e38\u306b\u4fbf\u5229\u306a\u30c4\u30fc\u30eb\u304c\u8a70\u307e\u3063\u305f\u958b\u767a\u7528\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u3059\u3002scikit-learn\u306a\u3069\u304c\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>CentOS7\u306b\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067python2\u7cfb\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306fAnaconda\u306epython3\u7cfb\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5165\u308c\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"pyenv%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u307e\u305a\u3001Centos7\u5185\u3067Anaconda\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3001pyenv\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002Anaconda\u306b\u306fphython3\u7cfb\u3068python2\u7cfb\u304c\u9078\u629e\u3067\u304d\u307e\u3059\u304c\u3001\u3053\u308c\u3089\u3092\u5f8c\u3005\u5207\u308a\u66ff\u3048\u3089\u308c\u308b\u3088\u3046\u306b\u3001pyenv\u3092\u5165\u308c\u3066\u304b\u3089Anaconda\u3092\u5165\u308c\u308b\u306e\u304c\u9244\u677f\u306a\u3088\u3046\u3067\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\t\n$ git clone git:\/\/github.com\/yyuu\/pyenv.git ~\/.pyenv\t\n\n#.bash_profile\u3078\u306e\u30d1\u30b9\u8ffd\u52a0\t\n$ echo &#039;export PYENV_ROOT=&quot;$HOME\/.pyenv&quot;&#039; &gt;&gt; ~\/.bash_profile\t\n\n#PYENV_ROOT\u3092\u4f7f\u3063\u3066\u30d1\u30b9\u5b9a\u7fa9\n$ echo &#039;export PATH=&quot;$PYENV_ROOT\/bin:$PATH&quot;&#039; &gt;&gt; ~\/.bash_profile\t\n\n#pyenv\u521d\u671f\u5316\n$ echo &#039;eval &quot;$(pyenv init -)&quot;&#039; &gt;&gt; ~\/.bash_profile\t\n\n#bashrc\u8aad\u307f\u76f4\u3057\n$ source ~\/.bashrc\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Anaconda3%E3%81%AE%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB\"><\/span>Anaconda3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aanaconda\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u305f\u4e0a\u3067\u3001pyenv install \u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u4e2d\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n#\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306aanaconda ver.\u30ea\u30b9\u30c8\u3092\u78ba\u8a8d\n$ pyenv install --list | grep anaconda\n    anaconda-1.4.0\n    ...\n    anaconda3-5.3.1\n\n#\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\n$ pyenv install anaconda3-5.3.1\n    Downloading Anaconda3-5.3.1-Linux-x86_64.sh.sh...\n    -&gt; https:\/\/repo.continuum.io\/archive\/Anaconda3-5.3.1-Linux-x86_64.sh\n    Installing Anaconda3-5.3.1-Linux-x86_64.sh...\n    Installed Anaconda3-5.3.1-Linux-x86_64.sh to \/.pyenv\/versions\/anaconda3-5.3.1\n\n#\u30cf\u30c3\u30b7\u30e5\u30c6\u30fc\u30d6\u30eb\u518d\u69cb\u7bc9\n$ pyenv rehash\n\n#anaconda\u74b0\u5883\u6307\u5b9a\n$ pyenv grobal anaconda3-5.3.1\n\n#\u30d1\u30b9\u8ffd\u52a0\necho &#039;export PATH=&quot;$PYENV_ROOT\/versions\/anaconda3-5.3.1\/bin\/:$PATH&quot;&#039; &gt;&gt; ~\/.bashrc\n\n#\u5b9f\u884c\n$ source ~\/.bashrc\n\n#\u672c\u4f53\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\nconda update conda\n\n#\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d\n$ pyenv -V\n#result\n Python 3.7.0 (default, Jun 28 2018, 13:15:42)\n<\/pre><\/div>\n\n\n<p>\u4e0a\u8ff0\u306e\u901a\u308aCentos7\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306fpython2\u7cfb\u3067\u3057\u305f\u304c\u3001\u3046\u307e\u3044\u3053\u3068python3\u7cfb\u306eAnaconda\u74b0\u5883\u306b\u5207\u308a\u66ff\u308f\u308a\u307e\u3057\u305f\u3002\u4eca\u5f8c\u3001\u958b\u767a\u74b0\u5883\u306a\u3069\u3082\u89e6\u3063\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684 python\u3067\u30c7\u30fc\u30bf\u5206\u6790\u3067\u304d\u308b\u74b0\u5883\u3092\u4f5c\u308a\u305f\u3044\u3002\u305d\u306e\u305f\u3081\u3001\u5fc5\u8981\u306a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=43","footnotes":""},"categories":[7],"tags":[],"class_list":["post-43","post","type-post","status-publish","format-standard","hentry","category-python","ja"],"_links":{"self":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/43","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=43"}],"version-history":[{"count":24,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions"}],"predecessor-version":[{"id":3798,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/43\/revisions\/3798"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=43"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=43"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=43"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}