{"id":1782,"date":"2015-03-09T12:00:20","date_gmt":"2015-03-09T11:00:20","guid":{"rendered":"http:\/\/www.unicoda.com\/?p=1782"},"modified":"2020-04-29T22:02:44","modified_gmt":"2020-04-29T20:02:44","slug":"npm-wrong-python-executable","status":"publish","type":"post","link":"https:\/\/www.unicoda.com\/?p=1782","title":{"rendered":"[NPM] Wrong python executable at install"},"content":{"rendered":"<p>In case you get an error similar to this when trying to <em>npm install<\/em> :<\/p>\n<pre>Error: Python executable \"python\" is v3.4.2, which is not supported by gyp.<\/pre>\n<p>You should tell npm which executable to use with the following command:<\/p>\n<pre class=\" language-html\" data-number=\"\"><code class=\" language-html\">npm config set python python2<\/code><\/pre>\n<p>If you are on ArchLinux, you&rsquo;re likely to encounter this problem since the default <em>python<\/em> is <em>python3<\/em>. Fortunately, it&rsquo;s easy to fix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In case you get an error similar to this when trying to npm install : Error: Python executable \u00ab\u00a0python\u00a0\u00bb is v3.4.2, which is not supported by gyp. You should tell npm which executable to use with the following command: npm config set python python2 If you are on ArchLinux, you&rsquo;re likely to encounter this problem &hellip; <a href=\"https:\/\/www.unicoda.com\/?p=1782\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;[NPM] Wrong python executable at install&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,31,126,5],"tags":[222,224,65,221,223],"class_list":["post-1782","post","type-post","status-publish","format-standard","hentry","category-code","category-installation","category-logiciellibre","category-terminal","tag-executable","tag-install","tag-npm","tag-python","tag-version"],"_links":{"self":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1782"}],"version-history":[{"count":3,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions"}],"predecessor-version":[{"id":1786,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=\/wp\/v2\/posts\/1782\/revisions\/1786"}],"wp:attachment":[{"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.unicoda.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}