{"id":1151,"date":"2022-06-28T23:22:15","date_gmt":"2022-06-28T15:22:15","guid":{"rendered":"http:\/\/175.24.184.226\/?p=1151"},"modified":"2022-06-28T23:29:21","modified_gmt":"2022-06-28T15:29:21","slug":"python-%e6%89%93%e5%8c%85%e5%b7%a5%e5%85%b7-nuitka-%e7%ae%80%e6%98%8e%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"\/?p=1151","title":{"rendered":"Python \u6253\u5305\u5de5\u5177 Nuitka \u7b80\u660e\u6559\u7a0b"},"content":{"rendered":"<h2>1.\u5b89\u88c5\u914d\u7f6e<\/h2>\n<p>\u94fe\u63a5\uff1a<a href=\"https:\/\/pan.baidu.com\/s\/14oTTipPZZCQS7abSOLxMcw\">https:\/\/pan.baidu.com\/s\/14oTTipPZZCQS7abSOLxMcw<\/a><br \/>\n\u63d0\u53d6\u7801\uff1askau<br \/>\n<a href=\"https:\/\/winlibs.com\/\">https:\/\/winlibs.com\/<\/a><\/p>\n<h3>1.\u5b89\u88c5\u4f9d\u8d56<\/h3>\n<p>\u672c\u673a64\u4f4d\u673a\u5668\uff0c\u5c06<code>winlibs-x86_64-posix-seh-gcc-11.2.0-llvm-12.0.1-mingw-w64-9.0.0-r1.zip<\/code>\u548c<code>depends22_x64.zip<\/code>\u89e3\u538b\u81f3C\u76d8\uff0c\u7136\u540e\u5c06\u8def\u5f84<code>C:\\mingw64\\bin<\/code>\u6dfb\u52a0\u81f3\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<h3>2.\u5b89\u88c5\u5305<\/h3>\n<pre><code class=\"language-bash\">pip install nuitka<\/code><\/pre>\n<h2>2.\u666e\u901a\u6253\u5305<\/h2>\n<p>\u6d4b\u8bd5\u4ee3\u7801\uff1a<br \/>\n<code>index.py<\/code>:<\/p>\n<pre><code class=\"language-python\">print(&#039;ojbk&#039;)<\/code><\/pre>\n<p>\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u8fd0\u884c\uff1a<br \/>\n<strong>For Windows<\/strong><\/p>\n<pre><code class=\"language-bash\">nuitka --standalone --remove-output --mingw64 index.py<\/code><\/pre>\n<p><strong>For Linux<\/strong><\/p>\n<pre><code class=\"language-bash\">nuitka3 --standalone --remove-output index.py<\/code><\/pre>\n<p>\u63d0\u793a\uff1a<br \/>\n\u5982\u679c\u5728\u6267\u884c\u547d\u4ee4\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230Yes\/No\u7684\u95ee\u9898\uff0c\u76f4\u63a5\u8f93\u5165Yes\u6309\u56de\u8f66\u5c31\u884c\u4e86\u3002<br \/>\nLinux\u7528\u6237\u5728\u6267\u884c\u547d\u4ee4\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u62a5\u9519\uff0c\u5982\u679c\u662f\u7f3a\u5c11\u4f9d\u8d56\uff0c\u6309\u7167\u63d0\u793a\u5b89\u88c5\u5bf9\u5e94\u7684\u4f9d\u8d56\u5373\u53ef\u3002<\/p>\n<p>\u6267\u884c\u5b8c\u4e0a\u8ff0\u547d\u4ee4\u540e\uff0c\u4f60\u5e94\u8be5\u80fd\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u770b\u5230\u4e00\u4e2a\u540d\u4e3amain.dist\u7684\u6587\u4ef6\u5939\uff0c\u8fd9\u5c31\u662f\u6211\u4eec\u9700\u8981\u7684\u4e1c\u897f\u4e86\u3002<\/p>\n<h2>3.\u8fd0\u884c<\/h2>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/image-20220628232055927.png\" alt=\"image-20220628232055927\" \/><\/p>\n<h2>\u53c2\u8003\u94fe\u63a5<\/h2>\n<p><a href=\"https:\/\/www.52pojie.cn\/thread-1557488-1-1.html\">https:\/\/www.52pojie.cn\/thread-1557488-1-1.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u914d\u7f6e \u94fe\u63a5\uff1ahttps:\/\/pan.baidu.com\/s\/14oTTipPZZCQS7abSOLxMcw \u63d0\u53d6\u7801\uff1askau h   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[67],"tags":[16,68],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1151"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1151"}],"version-history":[{"count":2,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1151\/revisions"}],"predecessor-version":[{"id":1153,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/1151\/revisions\/1153"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1151"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1151"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1151"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}