{"id":21451,"date":"2023-06-16T23:37:01","date_gmt":"2023-06-16T14:37:01","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=21451"},"modified":"2023-06-17T11:06:09","modified_gmt":"2023-06-17T02:06:09","slug":"%e3%80%90python%e3%80%91windows%e7%92%b0%e5%a2%83%e6%a7%8b%e7%af%89","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=21451","title":{"rendered":"\u3010Python\u3011Windows\u3067Anaconda\u3092\u4f7f\u3063\u305f\u74b0\u5883\u69cb\u7bc9"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Anaconda\u3092\u4f7f\u3063\u3066\u74b0\u5883\u69cb\u7bc9<\/h2>\n\n\n\n<p>anaconda\u3068web\u3067\u691c\u7d22\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30b7\u30b9\u30c6\u30e0\u2192\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u5909\u6570\u306e\u7de8\u96c6\u3092\u9078\u629e\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u74b0\u5883\u5909\u6570\u3067Path\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u65b0\u898f\u306e\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\anaconda3\nC:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\anaconda3\u540d\\Scripts\nC:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\anaconda3\\Library\\bin<\/code><\/pre>\n\n\n\n<p>\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306b\u4e00\u5ea6PC\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>powershell\u3092\u8d77\u52d5\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u307e\u3059\u3002\u3053\u308c\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u5e30\u3063\u3066\u304f\u308c\u3070\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u304c\u6b63\u5e38\u306b\u3067\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>python -V<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Jupyter Lab\u3092\u8d77\u52d5<\/h3>\n\n\n\n<p>powershell\u4e0a\u3067\u300cjupyter lab\u300d\u3068\u5165\u529b\u3057\u307e\u3059\u3002\u6570\u79d2\u5f8c\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30d6\u30e9\u30a6\u30b6\u304c\u8d77\u52d5\u3057\u3066\u7acb\u3061\u4e0a\u304c\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-24.png\" alt=\"\" class=\"wp-image-21465\" width=\"392\" height=\"271\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-24.png 855w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-24-300x208.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-24-768x532.png 768w\" sizes=\"(max-width: 392px) 100vw, 392px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">VSCode\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>VSCode\u3092\u516c\u5f0f\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u62e1\u5f35\u6a5f\u80fd\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<ul>\n<li>Japanese Language Pack for Visual Studio Code(\u65e5\u672c\u8a9e\u5316\uff09<\/li>\n\n\n\n<li>Python<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Path\u3092\u8a2d\u5b9a\u3059\u308b\u3002<\/h3>\n\n\n\n<p>\u30d5\u30a1\u30a4\u30eb\u2192\u30e6\u30fc\u30b6\u30fc\u8a2d\u5b9a\u2192\u8a2d\u5b9a\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u300cpython.defaultInterpreterPath\u300d\u3068\u691c\u7d22\u3057\u307e\u3059\u3002Path\u306e\u6b04\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\anaconda3\\python.exe<\/code><\/pre>\n\n\n\n<p>\u6b21\u306b\u300cpython.condapath\u300d\u3068\u691c\u7d22\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Users\\\u30e6\u30fc\u30b6\u30fc\u540d\\anaconda3\\Scripts<\/code><\/pre>\n\n\n\n<p>VSCode\u3092\u518d\u8d77\u52d5\u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5b9f\u884c\u78ba\u8a8d<\/h3>\n\n\n\n<p>test.py\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u4ee5\u4e0b\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8a66\u3057\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>print('hello world')<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"397\" height=\"182\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-26.png\" alt=\"\" class=\"wp-image-21473\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-26.png 397w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-26-300x138.png 300w\" sizes=\"(max-width: 397px) 100vw, 397px\" \/><\/figure>\n\n\n\n<p>\u53f3\u4e0a\u306e\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fAnaconda\u74b0\u5883\u306epython\u30c7\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"467\" height=\"130\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-27.png\" alt=\"\" class=\"wp-image-21474\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-27.png 467w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-27-300x84.png 300w\" sizes=\"(max-width: 467px) 100vw, 467px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b0\u3057\u3044\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u308b\u3002<\/h2>\n\n\n\n<p>\u4eca\u306fAnaconda\u4e0a\u3067\u300cbase\u300d\u3068\u3044\u3046\u74b0\u5883\u306e\u307f\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u72b6\u6cc1\u3067\u3059\u3002\u5225\u306e\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>Anaconda Navigator\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>Environments\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"231\" height=\"117\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-29.png\" alt=\"\" class=\"wp-image-21478\"\/><\/figure>\n\n\n\n<p>Create\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"66\" height=\"70\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-30.png\" alt=\"\" class=\"wp-image-21479\"\/><\/figure>\n\n\n\n<p>\u4eee\u60f3\u74b0\u5883\u540d\u3068Python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3057\u3066Create\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"460\" height=\"252\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-31.png\" alt=\"\" class=\"wp-image-21480\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-31.png 460w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-31-300x164.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/figure>\n\n\n\n<p>\u5c11\u3057\u5f85\u3066\u3070\u3053\u3093\u306a\u611f\u3058\u3067\u65b0\u3057\u3044\u4eee\u60f3\u74b0\u5883\u304c\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"1024\" height=\"598\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32-1024x598.png\" alt=\"\" class=\"wp-image-21481\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32-1024x598.png 1024w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32-300x175.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32-768x449.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32-177x104.png 177w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-32.png 1046w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u74b0\u5883\u69cb\u7bc9\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306bVSCode\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>VSCode\u4e0a\u3067\u300cCtrl + Shift + P\u300d\u3067\u30b3\u30de\u30f3\u30c9\u30d1\u30ec\u30c3\u30c8\u3092\u958b\u3044\u3066\u3001\u300c\u30bf\u30fc\u30df\u30ca\u30eb\uff1a\u65e2\u5b9a\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e\u300d\u3092\u9078\u629e\u3057\u300cCommand prompt\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002\uff08\u65e2\u5b9a\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u304cpowershell\u306b\u306a\u3063\u3066\u3044\u3066\u3001powershell\u3060\u3068VSCode\u4e0a\u304b\u3089conda\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u304a\u3046\u3068\u3057\u3066\u3082\u4e00\u90e8\u30b3\u30de\u30f3\u30c9\u304c\u3046\u307e\u304f\u5b9f\u884c\u304c\u3067\u304d\u306a\u3044\u5834\u5408\u3042\u304c\u3042\u308b\u305f\u3081\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u6b21\u306b\u3001VSCode\u4e0a\u3067\u300cCtrl + Shift + P\u300d\u3067\u30b3\u30de\u30f3\u30c9\u30d1\u30ec\u30c3\u30c8\u3092\u958b\u3044\u3066\u3001\u300cPython \u30a4\u30f3\u30bf\u30fc\u30d7\u30ea\u30bf\u30fc\u3092\u9078\u629e\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u305d\u3046\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4eca\u56de\u4f5c\u6210\u3057\u305f\u74b0\u5883\u3092\u9078\u3079\u308b\u306e\u3067\u9078\u3073\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"787\" height=\"173\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-33.png\" alt=\"\" class=\"wp-image-21484\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-33.png 787w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-33-300x66.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-33-768x169.png 768w\" sizes=\"(max-width: 787px) 100vw, 787px\" \/><\/figure>\n\n\n\n<p>VSCode\u306e\u753b\u9762\u53f3\u4e0b\u306b\u9078\u629e\u3057\u305f\u74b0\u5883\u304c\u53cd\u6620\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3067\u5b9f\u884c\u3057\u305f\u3089\u5207\u308a\u66ff\u3048\u305f\u74b0\u5883\u3067Python\u5b9f\u884c\u3067\u304d\u307e\u3059\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"252\" height=\"85\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2023\/06\/image-34.png\" alt=\"\" class=\"wp-image-21485\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"Anaconda\u3092\u4f7f\u3063\u3066\u74b0\u5883\u69cb\u7bc9 anaconda\u3068web\u3067\u691c\u7d22\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 \u30b7\u30b9\u30c6\u30e0\u2192\u30b7\u30b9\u30c6\u30e0\u74b0\u5883\u5909\u6570\u306e\u7de8\u96c6\u3092\u9078\u629e\u3059\u308b\u3002 \u74b0\u5883\u5909\u6570\u3067Path\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u65b0\u898f\u306e\u74b0\u5883\u5909\u6570\u3092\u8ffd\u52a0\u3059\u308b\u3002 \u74b0 [&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\/21451"}],"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=21451"}],"version-history":[{"count":13,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/21451\/revisions"}],"predecessor-version":[{"id":21490,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/21451\/revisions\/21490"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21451"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}