{"id":500,"date":"2017-04-29T14:11:56","date_gmt":"2017-04-29T05:11:56","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/python_visualstudio_code\/"},"modified":"2017-04-29T14:11:56","modified_gmt":"2017-04-29T05:11:56","slug":"python_visualstudio_code","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/python_visualstudio_code\/","title":{"rendered":"Python\u6a5f\u68b0\u5b66\u7fd2\u74b0\u5883\u3092 VisualStudio Code \u3067\u3067\u304d\u308b\u3088\u3046\u306b\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/Python%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0-%E9%81%94%E4%BA%BA%E3%83%87%E3%83%BC%E3%82%BF%E3%82%B5%E3%82%A4%E3%82%A8%E3%83%B3%E3%83%86%E3%82%A3%E3%82%B9%E3%83%88%E3%81%AB%E3%82%88%E3%82%8B%E7%90%86%E8%AB%96%E3%81%A8%E5%AE%9F%E8%B7%B5-impress-top-gear%E3%82%B7%E3%83%AA%E3%83%BC%E3%82%BA-ebook\/dp\/B01HGIPIAK\/ref=as_li_ss_il?ie=UTF8&amp;qid=1493441572&amp;sr=8-1&amp;keywords=%E6%A9%9F%E6%A2%B0%E5%AD%A6%E7%BF%92+python&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=3aea58391409f6932e4e31c73f807118\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B01HGIPIAK&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=B01HGIPIAK\" width=\"1\" height=\"1\"> <\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/04\/29\/anaconda_pydev_django_rest\">Anaconda \u304c\u5168\u90e8\u5165\u3063\u3066\u3066\u4fbf\u5229\u3060\u3068\u601d\u3063\u305f\u306e\u3060\u304c\u3001PC\u65b0\u8abf\u3067\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u3089\u4f7f\u3048\u306a\u3044\u306e\u3067<\/a>\u3001VS Code \u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<h2>1.\u74b0\u5883\u3092\u4f5c\u308b<\/h2>\n<h3>1.1. venv\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u3002<\/h3>\n<pre class=\"prettyprint linenums\">&gt;python -m venv c:\\workspaces\\venv\\datascience<\/pre>\n<h3>1.2&nbsp; VS Code \u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/h3>\n<p>\u4f5c\u696d\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210\u3057\u3001VS Code\u3067\u958b\u304f<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience01.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience01\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience01_thumb.jpg\" width=\"391\" height=\"183\"><\/a><\/p>\n<h3>1.3 Python\u62e1\u5f35\u6a5f\u80fd\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p><a title=\"http:\/\/qiita.com\/bigengelt\/items\/780440a146e6a3bdffd4\" href=\"http:\/\/qiita.com\/bigengelt\/items\/780440a146e6a3bdffd4\">http:\/\/qiita.com\/bigengelt\/items\/780440a146e6a3bdffd4<\/a><\/p>\n<p>Ctrl + Shift + p \u304b\u3089<\/p>\n<pre class=\"prettyprint linenums\">ext install python<\/pre>\n<p>\u3067 Python\u7528\u306e\u62e1\u5f35\u6a5f\u80fd\u304c\u30ea\u30b9\u30c8\u3055\u308c\u308b\u3067\u3001<a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=donjayamanne.python\">Python<\/a> \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb <\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience02_thumb.jpg\" width=\"328\" height=\"194\"><\/a><\/p>\n<h3>1.4 Python \u306e\u8a2d\u5b9a<\/h3>\n<p>\u30e1\u30cb\u30e5\u30fc &#8211; \u30d5\u30a1\u30a4\u30eb &#8211; \u57fa\u672c\u8a2d\u5b9a &#8211; \u8a2d\u5b9a<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience03.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience03\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience03_thumb.jpg\" width=\"320\" height=\"209\"><\/a><\/p>\n<ol>\n<li>settings.json \u304c\u958b\u304f\u306e\u3067\u3001\u8a2d\u5b9a\u306e\u691c\u7d22\u3067 python \u3092\u691c\u7d22\u3057\u3001Python Configuration \u306b\u7d5e\u308a\u8fbc\u3080\u3002<\/li>\n<li>\u753b\u9762\u53f3\u4e0a\u3067\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u306e\u8a2d\u5b9a\u3092\u9078\u629e\u3057\u3001\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u7528\u306b\u8a2d\u5b9a\u3092\u4e0a\u66f8\u304d<\/li>\n<li>Python\u304a\u3088\u3073\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d1\u30b9\u3092venv\u306e\u74b0\u5883\u306b\u4e0a\u66f8\u304d<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience04.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience04\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience04_thumb.jpg\" width=\"507\" height=\"231\"><\/a><\/p>\n<pre class=\"prettyprint linenums\">\/\/ \u65e2\u5b9a\u306e\u8a2d\u5b9a\u3092\u4e0a\u66f8\u304d\u3059\u308b\u306b\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306b\u8a2d\u5b9a\u3092\u633f\u5165\u3057\u307e\u3059\r\n{\r\n    \"python.pythonPath\":\"C:\\\\workspaces\\\\venv\\\\datascience\\\\Scripts\\\\python\",\r\n    \"python.autoComplete.extraPaths\": [\r\n        \"C:\\\\workspaces\\\\venv\\\\datascience\\\\Lib\\\\site-packages\"\r\n    ],\r\n}<\/pre>\n<h2>2.\u4e3b\u8981\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3053\u306e\u3042\u305f\u308a\u304cAnaconda\u4fbf\u5229\u3060\u3063\u305f\u306e\u3060\u304c\u3001<\/p>\n<blockquote>\n<p>pip \u306f\u30d0\u30a4\u30ca\u30ea\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u304b\u3089\u3002<br \/>pure python \u3067\u306a\u3044\u30d1\u30c3\u30b1\u30fc\u30b8\u306f\u30bd\u30fc\u30b9\u304b\u3089\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304c\u3001 linux \u3068\u9055\u3063\u3066 windows \u306b\u306f C \u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u306a\u3044\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3001 \u305d\u3046\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u3002\u305d\u306e\u305f\u3081 windows \u5411\u3051\u306b\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b(XXX-1.2.1.win32-py2.7.exe \u306a\u3069)\u3002\u3053\u306e\u30d0\u30a4\u30ca\u30ea\u30d1\u30c3\u30b1\u30fc\u30b8\u306f easy_install \u306a\u3089\u554f\u984c\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u304c\u3001 pip \u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u3002<\/p>\n<\/blockquote>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2015\/09\/19\/windows_virtualenv_python27_pip_wheel_scipywindows\">Windows \u3067 VirtualEnv \u306e Python2.7 \u306b pip \u3068 wheel \u3092\u4f7f\u3063\u3066 \u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8(\u4f8b scipy)\u3092Windows\u7528\u30d0\u30a4\u30ca\u30ea\u63d0\u4f9b\u30b5\u30a4\u30c8\u304b\u3089\u5165\u624b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/a><\/p>\n<p>\u3068\u540c\u3058\u5bfe\u5fdc\u3092\u3059\u308b(<a href=\"http:\/\/winpython.sourceforge.net\/\">WinPython<\/a> \u3068\u3044\u3046\u624b\u3082\u3042\u308b\u304c)\u3002<\/p>\n<p>\u307e\u305a\u3001pip install wheel \u3092\u884c\u3063\u305f\u5f8c\u3001\u4ee5\u4e0b\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3001venv\u3092Activate\u3057\u3066\u3001 pip \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<ul>\n<li><a title=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#numpy\" href=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#numpy\">http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#numpy<\/a><\/li>\n<li><a title=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#scipy\" href=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#scipy\">http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#scipy<\/a><\/li>\n<li><a title=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#matplotlib\" href=\"http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#matplotlib\">http:\/\/www.lfd.uci.edu\/~gohlke\/pythonlibs\/#matplotlib<\/a><\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">(datascience) PS C:\\workspaces\\venv\\datascience\\Scripts&gt; pip install \"C:\\Users\\pppiroto\\Downloads\\numpy-1.12.1+mkl-cp36-cp36m-win32.\r\nwhl\"\r\nProcessing c:\\users\\pppiroto\\downloads\\numpy-1.12.1+mkl-cp36-cp36m-win32.whl\r\nInstalling collected packages: numpy\r\nSuccessfully installed numpy-1.12.1+mkl<\/pre>\n<pre class=\"prettyprint linenums\">(datascience) PS C:\\workspaces\\venv\\datascience\\Scripts&gt; pip install \"C:\\Users\\pppiroto\\Downloads\\scipy-0.19.0-cp36-cp36m-win32.whl\"\r\n\r\nProcessing c:\\users\\pppiroto\\downloads\\scipy-0.19.0-cp36-cp36m-win32.whl\r\nRequirement already satisfied: numpy&gt;=1.8.2 in c:\\workspaces\\venv\\datascience\\lib\\site-packages (from scipy==0.19.0)\r\nInstalling collected packages: scipy\r\nSuccessfully installed scipy-0.19.0<\/pre>\n<pre class=\"prettyprint linenums\">(datascience) PS C:\\workspaces\\venv\\datascience\\Scripts&gt; pip install \"C:\\Users\\pppiroto\\Downloads\\matplotlib-2.0.0-cp36-cp36m-win32.\r\nwhl\"\r\nProcessing c:\\users\\pppiroto\\downloads\\matplotlib-2.0.0-cp36-cp36m-win32.whl\r\n :\r\nInstalling collected packages: pyparsing, six, python-dateutil, cycler, pytz, matplotlib\r\nSuccessfully installed cycler-0.10.0 matplotlib-2.0.0 pyparsing-2.2.0 python-dateutil-2.6.0 pytz-2017.2 six-1.10.0<\/pre>\n<h2>3.\u30c7\u30d0\u30c3\u30b0<\/h2>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u78ba\u8a8d\u3082\u304b\u306d\u3066\u30c7\u30d0\u30c3\u30b0\u3092\u884c\u3046\u3002<\/p>\n<ol>\n<li>\u753b\u9762\u5de6\u7aef\u306e\u3001\u866b\u7981\u6b62\u30a2\u30a4\u30b3\u30f3\u3092\u9078\u629e<\/li>\n<li>\u753b\u9762\u4e0a\u90e8\u306e\u30c7\u30d0\u30c3\u30b0\u69cb\u6210\u3067\u3001Python\u3092\u9078\u629e<\/li>\n<li>\u30c7\u30d0\u30c3\u30b0 \u6a2a\u306e\u518d\u751f\u30a2\u30a4\u30b3\u30f3\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u753b\u9762\u4e0a\u90e8\u306b\u30c7\u30d0\u30c3\u30b0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30a2\u30a4\u30b3\u30f3\u304c\u8868\u793a\u3055\u308c\u308b<\/li>\n<li>\u753b\u9762\u4e0a\u90e8\u306b\u8868\u793a\u3055\u308c\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u3001\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b<\/li>\n<li>\u30c7\u30d0\u30c3\u30b0\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u5404\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience09.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience09\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience09\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience09_thumb.jpg\" width=\"605\" height=\"207\"><\/a><\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience10.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"datascience10\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"datascience10\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/-Python-VsCode_B1F8\/datascience10_thumb.jpg\" width=\"338\" height=\"306\"><\/a><\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/dp\/479738946X\/ref=as_li_ss_il?ie=UTF8&amp;qid=1493441627&amp;sr=8-1&amp;keywords=%E3%81%BF%E3%82%93%E3%81%AA%E3%81%AEpython&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=b830f54764fe9f84b034b17f7fa89ee1\" target=\"_blank\"><img decoding=\"async\" border=\"0\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=479738946X&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=479738946X\" width=\"1\" height=\"1\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Anaconda \u304c\u5168\u90e8\u5165\u3063\u3066\u3066\u4fbf\u5229\u3060\u3068\u601d\u3063\u305f\u306e\u3060\u304c\u3001PC\u65b0\u8abf\u3067\u74b0\u5883\u69cb\u7bc9\u3057\u305f\u3089\u4f7f\u3048\u306a\u3044\u306e\u3067\u3001VS Code \u3067\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3002 1.\u74b0\u5883\u3092\u4f5c\u308b 1.1. venv\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3059\u308b\u3002 &gt;python -m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[20,12],"tags":[],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-python","category-visualstudio"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}