{"id":3104,"date":"2022-06-06T22:42:18","date_gmt":"2022-06-06T13:42:18","guid":{"rendered":"http:\/\/43.203.250.216\/?p=3104"},"modified":"2026-02-04T11:51:09","modified_gmt":"2026-02-04T02:51:09","slug":"mac-osx%ec%97%90%ec%84%9c-%eb%b9%8c%eb%93%9c-%ec%8b%a4%ed%8c%a8%eb%a1%9c-%ec%9d%b8%ed%95%9c-numpy-%ec%84%a4%ec%b9%98-%eb%ac%b8%ec%a0%9c","status":"publish","type":"post","link":"https:\/\/litcoder.com\/?p=3104","title":{"rendered":"macOS\uc5d0\uc11c numpy \uc124\uce58\ud560 \ub54c \ube4c\ub4dc \uc2e4\ud328 \ubb38\uc81c"},"content":{"rendered":"\n<p>Intel Mac\uc5d0\uc11c pip\ub85c numpy(ver1.22)\ub97c \uc124\uce58\ud558\ub824\uace0 \ud588\ub354\ub2c8 \uc124\uce58\uc5d0 \uc2e4\ud328\ud558\uba74\uc11c \uc544\uc8fc \uc544\uc8fc \uae34 \uc624\ub958\uac00 \ub098\uc624\ub294\ub370 Clang compiler option\uc758 architecture flag\uac00 \uc880 \uc774\uc0c1\ud558\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% python3 -m pip install numpy\n...\n clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot\/System\/Library\/Frameworks\/System.framework\/PrivateHeaders -iwithsysroot\/Applications\/Xcode.app\/Contents\/Developer\/Library\/Frameworks\/Python3.framework\/Versions\/3.8\/Headers -arch arm64 -arch x86_64 ...\n  clang: error: the clang compiler does not support '-march=native'\n...<\/pre>\n\n\n\n<p><strong><em>&#8220;-arch arm64 -arch x86_64&#8221;<\/em><\/strong> \ub77c\ub294 \uac74 Apple silicon\uacfc Intel architecture\ub97c \ubaa8\ub450 \uc9c0\uc6d0\ud574 \ubcf4\uaca0\ub2e4\ub294  \ub73b\uc778\uac00? \ud639\uc2dc\ub098 \ud574\uc11c \ud658\uacbd \ubcc0\uc218\ub85c ARCHFLAGS=&#8221;-arch x86_64&#8243;\ub97c \uc8fc\uace0 \uc7ac \uc2e4\ud589\ud574 \ubd24\ub354\ub2c8 \uc774\uc804\uc5d0 \uc788\ub358 -march=native \ud50c\ub798\uadf8\uac00 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\ub294\ub2e4\ub294 \uc5d0\ub7ec\uac00 \uc5c6\uc5b4\uc9c0\uba74 \uc798 \uc124\uce58\uac00 \ub418\uc5c8\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% ARCHFLAGS=\"-arch x86_64\" python3 -m pip install numpy<\/pre>\n\n\n\n<p>\uc880 \ub354 \uc77c\ubc18\uc801\uc73c\ub85c \uc801\uc6a9\ub420 \uc218 \uc788\ub294 \ub2e4\ub978 \ubc29\ubc95\uc73c\ub85c &#8220;&#8211;only-binary&#8221; \uc635\uc158\uc744 \uc8fc\uc5b4\uc11c wheel package file build\ub97c \uc548 \ud558\ub3c4\ub85d \ud558\ub294 \ubc29\ubc95\ub3c4 \uace0\ub824\ud574 \ubcfc \uc218 \uc788\uaca0\ub2e4.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"raw\" data-enlighter-theme=\"dracula\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">% pip install numpy --only-binary numpy\nCollecting numpy\n  Downloading numpy-1.22.4-cp38-cp38-macosx_10_15_x86_64.whl (17.6 MB)\n     \u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501 17.6\/17.6 MB 30.0 MB\/s eta 0:00:00\nInstalling collected packages: numpy\nSuccessfully installed numpy-1.22.4<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Intel Mac\uc5d0\uc11c pip\ub85c numpy(ver1.22)\ub97c \uc124\uce58\ud558\ub824\uace0 \ud588\ub354\ub2c8 \uc124\uce58\uc5d0 \uc2e4\ud328\ud558\uba74\uc11c \uc544\uc8fc \uc544\uc8fc \uae34 \uc624\ub958\uac00 \ub098\uc624\ub294\ub370 Clang compiler option\uc758 architecture flag\uac00 \uc880 \uc774\uc0c1\ud558\ub2e4. &#8220;-arch arm64 -arch x86_64&#8221; \ub77c\ub294 \uac74 Apple silicon\uacfc Intel architecture\ub97c \ubaa8\ub450 \uc9c0\uc6d0\ud574 \ubcf4\uaca0\ub2e4\ub294 \ub73b\uc778\uac00? \ud639\uc2dc\ub098 \ud574\uc11c \ud658\uacbd \ubcc0\uc218\ub85c ARCHFLAGS=&#8221;-arch x86_64&#8243;\ub97c \uc8fc\uace0 \uc7ac \uc2e4\ud589\ud574 \ubd24\ub354\ub2c8 \uc774\uc804\uc5d0 \uc788\ub358 -march=native \ud50c\ub798\uadf8\uac00 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\ub294\ub2e4\ub294 \uc5d0\ub7ec\uac00 \uc5c6\uc5b4\uc9c0\uba74 \uc798 \uc124\uce58\uac00 \ub418\uc5c8\ub2e4. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[297,296,295,294,105],"class_list":["post-3104","post","type-post","status-publish","format-standard","hentry","category-tools","tag-clang","tag-march","tag-numpy","tag-pip","tag-python"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3104"}],"version-history":[{"count":9,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3104\/revisions"}],"predecessor-version":[{"id":4133,"href":"https:\/\/litcoder.com\/index.php?rest_route=\/wp\/v2\/posts\/3104\/revisions\/4133"}],"wp:attachment":[{"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/litcoder.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}