{"id":248,"date":"2019-06-06T23:48:31","date_gmt":"2019-06-06T14:48:31","guid":{"rendered":"https:\/\/obenkyolab.com\/?p=248"},"modified":"2022-01-07T06:57:34","modified_gmt":"2022-01-06T21:57:34","slug":"%e3%80%80missing-required-dependencies-0-formatmissing_dependencies-importerror-missing-required-dependencies-numpy%e3%80%80%e3%81%ae%e5%af%be%e5%87%a6","status":"publish","type":"post","link":"https:\/\/obenkyolab.com\/?p=248","title":{"rendered":"\u3000 ImportError: Missing required dependencies [&#8216;numpy&#8217;]\u3000\u306e\u5bfe\u51e6"},"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=248\/#%E6%A6%82%E8%A6%81\" >\u6982\u8981<\/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=248\/#%E7%99%BA%E7%94%9F%E4%BA%8B%E8%B1%A1\" >\u767a\u751f\u4e8b\u8c61<\/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=248\/#%E5%AF%BE%E5%87%A6%E6%B3%95\" >\u5bfe\u51e6\u6cd5<\/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=248\/#%E5%BF%B5%E3%81%AE%E3%81%9F%E3%82%81\" >\u5ff5\u306e\u305f\u3081<\/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=248\/#%E6%95%99%E8%A8%93\" >\u6559\u8a13<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%A6%82%E8%A6%81\"><\/span>\u6982\u8981<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>windows10\u4e0a\u306eAnaconda3(python3\u7cfb)\u74b0\u5883\u3067pandas\u3092\u4f7f\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u305f\u3081\u5bfe\u51e6\u6cd5\u306b\u3064\u3044\u3066\u30e1\u30e2\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E7%99%BA%E7%94%9F%E4%BA%8B%E8%B1%A1\"><\/span>\u767a\u751f\u4e8b\u8c61<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>csv\u30d5\u30a1\u30a4\u30eb\u3092pandas\u3067\u8aad\u307f\u8fbc\u3082\u3046\u3068\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8d70\u3089\u305b\u305f\u3068\u3053\u308dImportError\u304c\u767a\u751f\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport pandas as pd\n\nf = pd.read_csv(&#039;\u30d5\u30a1\u30a4\u30eb\u540d&#039;,encoding=&#039;shift-jis&#039;,engine=&#039;python&#039;)\n\n&quot;Missing required dependencies {0}&quot;.format(missing_dependencies))\nImportError: Missing required dependencies &#x5B;&#039;numpy&#039;]\n<\/pre><\/div>\n\n\n<p>\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001\u5fc5\u8981\u306a\u4f9d\u5b58\u30e9\u30a4\u30d6\u30e9\u30eanumpy\u304c\u898b\u3064\u304b\u3089\u306a\u3044\u3068\u306e\u3053\u3068\u3002\u3067\u3082Anaconda3\u306bnumpy\u5165\u3063\u3066\u3044\u306a\u3044\u308f\u3051\u306f\u306a\u3044\u305f\u3081\u306a\u305c\uff1f\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u4e0a\u8a18\u306b\u52a0\u3048\u3066import numpy\u3057\u3066\u518d\u5ea6\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u3066\u3082\u7d50\u679c\u306f\u540c\u3058\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%AF%BE%E5%87%A6%E6%B3%95\"><\/span>\u5bfe\u51e6\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u7d50\u8ad6\u3068\u3057\u3066\u306f\u3001Anaconda Prompt\u304b\u3089pip\u3067numpy\u3092\u6700\u65b0\u5316\u3057\u305f\u3068\u3053\u308d\u30a8\u30e9\u30fc\u304c\u89e3\u6d88\u3055\u308c\u307e\u3057\u305f\u3002\u6ce8\u610f\u70b9\u3068\u3057\u3066\u306f\u3001\u300c\u7ba1\u7406\u8005\u3068\u3057\u3066\u5b9f\u884c\u300d\u3067Anaconda Prompt\u3092\u958b\u304b\u306a\u3044\u3068\u3001\u65e2\u5b58\u30d0\u30fc\u30b8\u30e7\u30f3\u306enumpy\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u305a\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\u5fd8\u308c\u305a\u306b\u7ba1\u7406\u8005\u6a29\u9650\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u3059\u3002numpy\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c1.15.4\u3060\u3063\u305f\u306e\u304c1.16.4\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\npip install --upgrade numpy\n\n----\nCollecting numpy\n  Using cached https:\/\/files.pythonhosted.org\/packages\/ce\/61\/be72eee50f042db3acf0b1fb86650ad36d6c0d9be9fc29f8505d3b9d6baa\/numpy-1.16.4-cp37-cp37m-win_amd64.whl\nInstalling collected packages: numpy\n  Found existing installation: numpy 1.15.4\n    Uninstalling numpy-1.15.4:\n      Successfully uninstalled numpy-1.15.4\nSuccessfully installed numpy-1.16.4\n<\/pre><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nimport pandas as pd\n\nf = pd.read_csv(&#039;\u30d5\u30a1\u30a4\u30eb\u540d&#039;,encoding=&#039;shift-jis&#039;,engine=&#039;python&#039;)\n----\nProcess finished with exit code 0\n<\/pre><\/div>\n\n\n<p> numpy\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u554f\u984c\u3060\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u307f\u305f\u3044\u3067\u3059\u3002\u3082\u3057\u304f\u306f\u4f9d\u5b58\u95a2\u4fc2\u304c\u4e0a\u624b\u304f\u89e3\u6c7a\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u306e\u304b\u3002 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E5%BF%B5%E3%81%AE%E3%81%9F%E3%82%81\"><\/span>\u5ff5\u306e\u305f\u3081<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u540c\u3058\u304f\u3001Anaconda Prompt\u304b\u3089pandas\u3082upgrade\u3057\u3066\u304a\u304d\u307e\u3057\u305f\u3002\u3053\u3061\u3089\u306fpandas 0.23.4\u304b\u30890.24.2\u306b\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\npip install --upgrade pandas\n\n----\nCollecting pandas\n  Downloading https:\/\/files.pythonhosted.org\/packages\/61\/c7\/f943fceb712579bc538700e2c157dc4972e16abfe29bd4969149bad98c74\/pandas-0.24.2-cp37-cp37m-win_amd64.whl (9.0MB)\n    100% |\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588| 9.0MB 656kB\/s\nRequirement already satisfied, skipping upgrade: pytz&gt;=2011k in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas) (2018.7)\nRequirement already satisfied, skipping upgrade: python-dateutil&gt;=2.5.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas) (2.7.5)\nRequirement already satisfied, skipping upgrade: numpy&gt;=1.12.0 in c:\\programdata\\anaconda3\\lib\\site-packages (from pandas) (1.16.4)\nRequirement already satisfied, skipping upgrade: six&gt;=1.5 in c:\\programdata\\anaconda3\\lib\\site-packages (from python-dateutil&gt;=2.5.0-&gt;pandas) (1.12.0)\nInstalling collected packages: pandas\n  Found existing installation: pandas 0.23.4\n    Uninstalling pandas-0.23.4:\n      Successfully uninstalled pandas-0.23.4\nSuccessfully installed pandas-0.24.2\n\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%95%99%E8%A8%93\"><\/span>\u6559\u8a13<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Import Error\u304c\u51fa\u305f\u3068\u304d\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3092\u304b\u3051\u3066\u307f\u308b\u306e\u304c\u826f\u3044\u304b\u3082\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 windows10\u4e0a\u306eAnaconda3(python3\u7cfb)\u74b0&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1218,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/obenkyolab.com\/?p=248","footnotes":""},"categories":[7],"tags":[],"class_list":["post-248","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\/248","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=248"}],"version-history":[{"count":9,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions"}],"predecessor-version":[{"id":3802,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/posts\/248\/revisions\/3802"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=\/wp\/v2\/media\/1218"}],"wp:attachment":[{"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/obenkyolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}