{"id":20872,"date":"2023-05-30T09:01:36","date_gmt":"2023-05-30T00:01:36","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=20872"},"modified":"2023-06-13T08:43:35","modified_gmt":"2023-06-12T23:43:35","slug":"%e3%80%90python%e3%80%91anaconda%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=20872","title":{"rendered":"\u3010Python\u3011Anaconda\u306e\u4f7f\u3044\u65b9\u30e1\u30e2"},"content":{"rendered":"<h2>\u74b0\u5883\u4e00\u89a7\u306e\u8868\u793a<\/h2>\n<pre class=\"lang:default decode:true\">conda env list<\/pre>\n<p>\u4eee\u60f3\u74b0\u5883\u306e\u4e00\u89a7\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\"># conda environments:\n#\nbase                  *  \/Users\/xxx\/opt\/anaconda3\nNextjs_API               \/Users\/xxx\/opt\/anaconda3\/envs\/Nextjs_API\npythonenv                \/Users\/xxx\/opt\/anaconda3\/envs\/pythonenv\npythonenv=3.8            \/Users\/xxx\/opt\/anaconda3\/envs\/pythonenv=3.8<\/pre>\n<h2>\u74b0\u5883\u3092\u4f5c\u6210<\/h2>\n<p>\u74b0\u5883\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">conda create -n \u74b0\u5883\u540d(pythonenv\u306a\u3069) python=\u30d0\u30fc\u30b8\u30e7\u30f3\uff083.10\u306a\u3069)<\/pre>\n<h2>\u74b0\u5883\u3092\u524a\u9664<\/h2>\n<pre class=\"lang:default decode:true\">conda remove -n \u74b0\u5883\u540d(pythonenv\u306a\u3069) --all<\/pre>\n<h2>\u74b0\u5883\u3092\u6709\u52b9\u5316\uff08\u5207\u308a\u66ff\u3048\u308b)<\/h2>\n<pre class=\"lang:default decode:true\">conda activate \u74b0\u5883\u540d(pythonenv\u306a\u3069\uff09<\/pre>\n<p>\u300cconda env list\u300d\u3092\u3059\u308b\u3068\u30a2\u30b9\u30bf\u30ea\u30b9\u30af\u306e\u4f4d\u7f6e\u304c\u5207\u308a\u66ff\u308f\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u74b0\u5883\u3092\u7121\u52b9\u5316\uff08base\u306b\u623b\u3059)<\/h2>\n<pre class=\"lang:default decode:true\">conda deactivate<\/pre>\n<p>\u74b0\u5883\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u306ebase\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<h2>Anaconda\u306e\u5b9f\u884c\u74b0\u5883\u304b\u3089\u629c\u3051\u308b\u3002<\/h2>\n<p>\u305d\u3082\u305d\u3082\u30bf\u30fc\u30df\u30ca\u30eb\u4e0a\u3067anaconda\u306e\u5b9f\u884c\u74b0\u5883\u304b\u3089\u629c\u3051\u305f\u3044\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">source deactivate<\/pre>\n<h2>\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u3092\u8868\u793a<\/h2>\n<pre class=\"lang:default decode:true\">conda list<\/pre>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \"># packages in environment at \/Users\/xxx\/opt\/anaconda3\/envs\/pythonenv2:\n#\n# Name                    Version                   Build  Channel\nbzip2                     1.0.8                h1de35cc_0\nca-certificates           2023.01.10           hecd8cb5_0\nlibffi                    3.4.4                hecd8cb5_0\nncurses                   6.4                  hcec6c5f_0\nopenssl                   1.1.1t               hca72f7f_0\npip                       23.0.1                   pypi_0    pypi\npython                    3.10.11              h218abb5_2\nreadline                  8.2                  hca72f7f_0\nsetuptools                67.8.0                   pypi_0    pypi\nsqlite                    3.41.2               h6c40b1e_0\ntk                        8.6.12               h5d9f67b_0\ntzdata                    2023c                h04d1e81_0\nwheel                     0.38.4                   pypi_0    pypi\nxz                        5.4.2                h6c40b1e_0\nzlib                      1.2.13               h4dc903c_0<\/pre>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<pre class=\"lang:default decode:true  \">conda install \u30d1\u30c3\u30b1\u30fc\u30b8\u540d(django\u306a\u3069\uff09<\/pre>\n<h2>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u524a\u9664<\/h2>\n<pre class=\"lang:default decode:true \">conda remove \u30d1\u30c3\u30b1\u30fc\u30b8\u540d(django\u306a\u3069\uff09<\/pre>\n","protected":false},"excerpt":{"rendered":"\u74b0\u5883\u4e00\u89a7\u306e\u8868\u793a conda env list \u4eee\u60f3\u74b0\u5883\u306e\u4e00\u89a7\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002 # conda environments: # base * \/Users\/xxx\/opt\/anaconda3 Nextjs_API \/Use [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[47],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/20872"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20872"}],"version-history":[{"count":13,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/20872\/revisions"}],"predecessor-version":[{"id":21333,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/20872\/revisions\/21333"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20872"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}