{"id":91437,"date":"2020-05-03T11:27:47","date_gmt":"2020-05-03T03:27:47","guid":{"rendered":"http:\/\/4563.org\/?p=91437"},"modified":"2020-05-03T11:27:47","modified_gmt":"2020-05-03T03:27:47","slug":"py27-%e7%bc%96%e8%af%91-pyd-%e9%97%ae%e9%a2%98%e8%af%b7%e6%95%99","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=91437","title":{"rendered":"py27 \u7f16\u8bd1 pyd \u95ee\u9898\u8bf7\u6559"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  py27 \u7f16\u8bd1 pyd \u95ee\u9898\u8bf7\u6559               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oldbird <\/span>  <span><i><\/i> 15<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u53c2\u7167\u4e86\u8fd9\u7bc7\u6587\u7ae0 http:\/\/yshblog.com\/blog\/117<\/p>\n<p>\u4e3b\u8981\u5c31\u662f 1 \u3001\u5b89\u88c5\u5fae\u8f6f\u4e3a Python \u63d0\u4f9b\u4e86\u4e13\u7528\u7684\u7f16\u8bd1\u5668 Microsoft Visual C++ Compiler for Python 2.7 2 \u3001\u4fee\u6539 python \u5b89\u88c5\u76ee\u5f55\u4e0b Libdistutilsmsvc9compiler.py \u6587\u4ef6\uff0c\u627e\u5230 get_build_version \u65b9\u6cd5\u76f4\u63a5 return 9.0 \uff1b\u7136\u540e\u518d\u627e\u5230 find_vcvarsall \u65b9\u6cd5\u76f4\u63a5\u8fd4\u56de vcvarsall.bat \u7684\u8def\u5f84<\/p>\n<p>\u8fd0\u884c python setup.py build_ext &#8211;inplace \u540e\uff0c\u603b\u662f\u63d0\u793a<\/p>\n<p>running build_ext<\/p>\n<p>building &#8216;test&#8217; extension<\/p>\n<p>gcc -mno-cygwin -mdll -O -Wall -IC:WpyWPy27_32python-2.7.13include -IC:WpyWPy27_32python-2.7.13PC -c test.c -o buildtemp.win32-2.7Releasetest.o<\/p>\n<p>error: command &#8216;gcc&#8217; failed: No such file or directory<\/p>\n<p>\u4e0d\u77e5\u9053\u54ea\u91cc\u53bb\u627e gcc\uff0c\u5fc5\u987b\u8981\u5b89\u88c5\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1248809\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u662f\u60f3\u5b66\u4e60\u7f16\u8bd1\u6d41\u7a0b\u672c\u8eab\uff0c\u8fd8\u662f\u60f3\u7f16\u8bd1\u51fa\u4e00\u4e2a pyd \uff1f\u5982\u679c\u662f\u540e\u8005\u7684\u8bdd\u5efa\u8bae\u76f4\u63a5\u4f7f\u7528 pybind11 \u3002<br \/>https:\/\/github.com\/pybind\/pybind11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248810\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : oldbird <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c31\u662f\u60f3\u7f16\u8bd1\u4e00\u4e2a pyd\uff0c\u770b\u535a\u5ba2\u5e16\u5b50\u597d\u50cf\u4e0d\u9700\u8981 gcc\uff0c\u53ea\u8981\u5b89\u88c5\u5fae\u8f6f\u652f\u6301\u5e93\uff0c\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48\u62a5\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1248811\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SingeeKing <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u786e\u5b9a\u662f\u5728 Microsoft Visual C++ Compiler for Python 2.7 2 \u73af\u5883\u5185\u8fd0\u884c\u7684\u5417\uff0c\u8bd5\u8bd5\u76f4\u63a5\u6267\u884c gcc -v \u6709\u6ca1\u6709\u7248\u672c\u4fe1\u606f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>py27 \u7f16\u8bd1 pyd \u95ee\u9898\u8bf7\u6559 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91437"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=91437"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/91437\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=91437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=91437"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=91437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}