{"id":995280,"date":"2024-12-27T09:03:32","date_gmt":"2024-12-27T01:03:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/995280.html"},"modified":"2024-12-27T09:03:34","modified_gmt":"2024-12-27T01:03:34","slug":"%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90python%e7%9a%84exe","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/995280.html","title":{"rendered":"\u5982\u4f55\u751f\u6210python\u7684exe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071941\/782b2ee4-79f5-49a6-9f76-e64e11895817.webp\" alt=\"\u5982\u4f55\u751f\u6210python\u7684exe\" \/><\/p>\n<p><p> <strong>\u8981\u751f\u6210Python\u7684exe\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982PyInstaller\u3001cx_Freeze\u3001py2exe\u7b49\u5de5\u5177\u3002PyInstaller\u662f\u6700\u5e38\u7528\u7684\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u5927\u591a\u6570Python\u7a0b\u5e8f\uff0c\u5e76\u4e14\u975e\u5e38\u6613\u4e8e\u4f7f\u7528\u3002\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6\u7684\u57fa\u672c\u6b65\u9aa4\u5305\u62ec\uff1a\u5b89\u88c5PyInstaller\u3001\u7f16\u5199Python\u811a\u672c\u3001\u8fd0\u884cPyInstaller\u547d\u4ee4\u751f\u6210exe\u6587\u4ef6\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001PYINSTALLER\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/p>\n<\/p>\n<p><p>\u8981\u5f00\u59cb\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u548c\u914d\u7f6ePyInstaller\u3002PyInstaller\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pyinstaller --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5982\u679c\u6210\u529f\uff0c\u4f1a\u663e\u793aPyInstaller\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><p>PyInstaller\u53ef\u4ee5\u5728Windows\u3001MacOS\u548cLinux\u7b49\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u4f46\u751f\u6210\u7684exe\u6587\u4ef6\u53ea\u80fd\u5728Windows\u73af\u5883\u4e0b\u4f7f\u7528\u3002\u56e0\u6b64\uff0c\u5728Windows\u7cfb\u7edf\u4e0a\u751f\u6210exe\u6587\u4ef6\u65f6\uff0c\u9700\u8981\u786e\u4fddPython\u3001PyInstaller\u548c\u76f8\u5173\u7684\u5e93\u90fd\u5df2\u6b63\u786e\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7f16\u5199PYTHON\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210exe\u6587\u4ef6\u4e4b\u524d\uff0c\u9700\u8981\u7f16\u5199\u4e00\u4e2aPython\u811a\u672c\u4f5c\u4e3a\u6e90\u6587\u4ef6\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c<code>hello.py<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n():<\/p>\n<p>    print(&quot;Hello, World!&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u811a\u672c\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\uff0c\u5e76\u4e14\u80fd\u591f\u5728Python\u73af\u5883\u4e0b\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u751f\u6210EXE\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>--onefile<\/code>\u9009\u9879\u8868\u793a\u5c06\u6240\u6709\u7684\u7a0b\u5e8f\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684exe\u6587\u4ef6\u3002\u8fd0\u884c\u4e0a\u8ff0\u547d\u4ee4\u540e\uff0cPyInstaller\u4f1a\u751f\u6210\u4e00\u4e2a\u540d\u4e3a<code>dist<\/code>\u7684\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u4e86\u751f\u6210\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u751f\u6210exe\u6587\u4ef6\u7684\u8fc7\u7a0b\u5305\u62ec\u5206\u6790Python\u811a\u672c\u7684\u4f9d\u8d56\u9879\u3001\u6253\u5305Python\u89e3\u91ca\u5668\u3001\u5c06\u6240\u6709\u6587\u4ef6\u5408\u5e76\u4e3a\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u7b49\u6b65\u9aa4\u3002PyInstaller\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u4e24\u4e2a\u6587\u4ef6\u5939<code>build<\/code>\u548c<code>dist<\/code>\uff0c\u4ee5\u53ca\u4e00\u4e2a<code>hello.spec<\/code>\u6587\u4ef6\u3002<code>dist<\/code>\u6587\u4ef6\u5939\u4e2d\u5c31\u662f\u6700\u7ec8\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u914d\u7f6eSPEC\u6587\u4ef6<\/p>\n<\/p>\n<p><p>PyInstaller\u751f\u6210\u7684<code>spec<\/code>\u6587\u4ef6\u662f\u4e00\u4e2aPython\u811a\u672c\u6587\u4ef6\uff0c\u7528\u4e8e\u8bb0\u5f55\u6253\u5305\u8fc7\u7a0b\u4e2d\u7684\u914d\u7f6e\u4fe1\u606f\u3002\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>spec<\/code>\u6587\u4ef6\u6765\u5b9a\u5236\u751f\u6210\u7684exe\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u6dfb\u52a0\u6570\u636e\u6587\u4ef6\u3001\u4fee\u6539\u56fe\u6807\u3001\u66f4\u6539\u7a97\u53e3\u98ce\u683c\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684<code>spec<\/code>\u6587\u4ef6\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># -*- mode: python -*-<\/p>\n<p>block_cipher = None<\/p>\n<p>a = Analysis([&#39;hello.py&#39;],<\/p>\n<p>             pathex=[&#39;\/path\/to\/your\/script&#39;],<\/p>\n<p>             binaries=[],<\/p>\n<p>             datas=[],<\/p>\n<p>             hiddenimports=[],<\/p>\n<p>             hookspath=[],<\/p>\n<p>             runtime_hooks=[],<\/p>\n<p>             excludes=[],<\/p>\n<p>             win_no_prefer_redirects=False,<\/p>\n<p>             win_private_assemblies=False,<\/p>\n<p>             cipher=block_cipher,<\/p>\n<p>             noarchive=False)<\/p>\n<p>pyz = PYZ(a.pure, a.zipped_data,<\/p>\n<p>             cipher=block_cipher)<\/p>\n<p>exe = EXE(pyz,<\/p>\n<p>          a.scripts,<\/p>\n<p>          a.binaries,<\/p>\n<p>          a.zipfiles,<\/p>\n<p>          a.datas,<\/p>\n<p>          [],<\/p>\n<p>          name=&#39;hello&#39;,<\/p>\n<p>          debug=False,<\/p>\n<p>          bootloader_ignore_signals=False,<\/p>\n<p>          strip=False,<\/p>\n<p>          upx=True,<\/p>\n<p>          upx_exclude=[],<\/p>\n<p>          runtime_tmpdir=None,<\/p>\n<p>          console=True )<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7f16\u8f91\u5b8c<code>spec<\/code>\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u91cd\u65b0\u751f\u6210exe\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller hello.spec<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u6dfb\u52a0\u6570\u636e\u6587\u4ef6\u548c\u56fe\u6807<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u5305\u542b\u989d\u5916\u7684\u6570\u636e\u6587\u4ef6\u548c\u81ea\u5b9a\u4e49\u56fe\u6807\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u6570\u636e\u6587\u4ef6<code>config.json<\/code>\u548c\u4e00\u4e2a\u56fe\u6807\u6587\u4ef6<code>icon.ico<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u6253\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --add-data &quot;config.json;.&quot; --icon=icon.ico hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>--add-data<\/code>\u9009\u9879\u7528\u4e8e\u6307\u5b9a\u9700\u8981\u6253\u5305\u7684\u6570\u636e\u6587\u4ef6\uff0c\u683c\u5f0f\u4e3a<code>&quot;\u6e90\u6587\u4ef6;\u76ee\u6807\u8def\u5f84&quot;<\/code>\u3002<code>--icon<\/code>\u9009\u9879\u7528\u4e8e\u6307\u5b9aexe\u6587\u4ef6\u7684\u56fe\u6807\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5904\u7406\u9690\u85cf\u5bfc\u5165<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0cPyInstaller\u53ef\u80fd\u65e0\u6cd5\u81ea\u52a8\u68c0\u6d4b\u5230\u6240\u6709\u7684\u4f9d\u8d56\u5305\uff0c\u7279\u522b\u662f\u52a8\u6001\u5bfc\u5165\u7684\u6a21\u5757\u3002\u53ef\u4ee5\u901a\u8fc7<code>--hidden-import<\/code>\u9009\u9879\u624b\u52a8\u6307\u5b9a\u9690\u85cf\u7684\u5bfc\u5165\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --hidden-import=module_name hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e03\u3001\u4f18\u5316\u548c\u8c03\u8bd5<\/p>\n<\/p>\n<p><p>\u751f\u6210\u7684exe\u6587\u4ef6\u53ef\u80fd\u4f1a\u6bd4\u8f83\u5927\uff0c\u53ef\u4ee5\u901a\u8fc7UPX\u5de5\u5177\u8fdb\u884c\u538b\u7f29\u3002UPX\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5de5\u5177\uff0cPyInstaller\u53ef\u4ee5\u901a\u8fc7<code>--upx-dir<\/code>\u9009\u9879\u6307\u5b9aUPX\u7684\u5b89\u88c5\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --upx-dir=\/path\/to\/upx hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u751f\u6210\u7684exe\u6587\u4ef6\u5728\u8fd0\u884c\u65f6\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u901a\u8fc7<code>--debug<\/code>\u9009\u9879\u8fdb\u884c\u8c03\u8bd5\uff0c\u67e5\u770b\u8be6\u7ec6\u7684\u9519\u8bef\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pyinstaller --onefile --debug=all hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516b\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f3a\u5c11\u6a21\u5757\u9519\u8bef<\/strong>\uff1a\u5982\u679c\u5728\u751f\u6210exe\u6587\u4ef6\u65f6\u9047\u5230\u7f3a\u5c11\u6a21\u5757\u7684\u9519\u8bef\uff0c\u53ef\u4ee5\u901a\u8fc7<code>--hidden-import<\/code>\u9009\u9879\u624b\u52a8\u6307\u5b9a\u7f3a\u5c11\u7684\u6a21\u5757\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u6807\u4e0d\u663e\u793a<\/strong>\uff1a\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u56fe\u6807\u6587\u4ef6\u5fc5\u987b\u662f<code>.ico<\/code>\u683c\u5f0f\u3002\u5982\u679c\u56fe\u6807\u4e0d\u663e\u793a\uff0c\u68c0\u67e5\u56fe\u6807\u6587\u4ef6\u7684\u683c\u5f0f\u548c\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u8fc7\u5927<\/strong>\uff1a\u751f\u6210\u7684exe\u6587\u4ef6\u53ef\u80fd\u4f1a\u6bd4\u8f83\u5927\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528UPX\u5de5\u5177\u8fdb\u884c\u538b\u7f29\uff0c\u6216\u8005\u5728<code>spec<\/code>\u6587\u4ef6\u4e2d\u6392\u9664\u4e0d\u5fc5\u8981\u7684\u6a21\u5757\u6765\u51cf\u5c0f\u6587\u4ef6\u5927\u5c0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c<\/strong>\uff1a\u786e\u4fdd\u5728\u6253\u5305\u65f6\u6ca1\u6709\u9057\u6f0f\u5fc5\u8981\u7684\u4f9d\u8d56\u6587\u4ef6\u548c\u6a21\u5757\uff0c\u68c0\u67e5\u751f\u6210\u7684<code>spec<\/code>\u6587\u4ef6\u914d\u7f6e\u662f\u5426\u6b63\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyInstaller\u751f\u6210Python\u7684exe\u6587\u4ef6\u662f\u4e00\u4e2a\u76f8\u5bf9\u7b80\u5355\u7684\u8fc7\u7a0b\uff0c\u4f46\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u5404\u79cd\u95ee\u9898\u3002\u4e86\u89e3PyInstaller\u7684\u5de5\u4f5c\u539f\u7406\u548c\u914d\u7f6e\u9009\u9879\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u89e3\u51b3\u95ee\u9898\uff0c\u5e76\u751f\u6210\u7b26\u5408\u9700\u6c42\u7684exe\u6587\u4ef6\u3002\u901a\u8fc7\u4e0d\u65ad\u5b9e\u8df5\u548c\u8c03\u8bd5\uff0c\u53ef\u4ee5\u79ef\u7d2f\u66f4\u591a\u7684\u7ecf\u9a8c\uff0c\u63d0\u9ad8\u6253\u5305\u7684\u6548\u7387\u548c\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u7b49\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u4f1a\u5c06Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884c\u3002\u5b89\u88c5\u8fd9\u4e9b\u5de5\u5177\u540e\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u76f8\u5173\u7684\u6253\u5305\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u8f6c\u6362\u3002<\/p>\n<p><strong>\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u4f7f\u7528PyInstaller\u65f6\uff0c\u786e\u4fdd\u60a8\u7684Python\u811a\u672c\u4e2d\u6ca1\u6709\u4efb\u4f55\u672a\u5904\u7406\u7684\u4f9d\u8d56\u9879\u3002\u6b64\u5916\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u6570\u636e\u6587\u4ef6\u548c\u8d44\u6e90\u6587\u4ef6\u7684\u8def\u5f84\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u5728\u6253\u5305\u540e\u80fd\u591f\u6b63\u786e\u627e\u5230\u3002\u4e5f\u5efa\u8bae\u5728\u751f\u6210exe\u4e4b\u524d\u6d4b\u8bd5\u60a8\u7684\u811a\u672c\uff0c\u4ee5\u907f\u514d\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n<p><strong>\u751f\u6210\u7684exe\u6587\u4ef6\u5728\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\u80fd\u5426\u6b63\u5e38\u8fd0\u884c\uff1f<\/strong><br \/>\u751f\u6210\u7684exe\u6587\u4ef6\u53ef\u4ee5\u5728\u6ca1\u6709\u5b89\u88c5Python\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u76ee\u6807\u8ba1\u7b97\u673a\u7684\u64cd\u4f5c\u7cfb\u7edf\u5fc5\u987b\u4e0e\u60a8\u6253\u5305\u65f6\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e00\u81f4\u3002\u6b64\u5916\uff0c\u67d0\u4e9b\u5e93\u6216\u4f9d\u8d56\u9879\u53ef\u80fd\u9700\u8981\u5728\u76ee\u6807\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u76f8\u5e94\u7684\u8fd0\u884c\u65f6\u73af\u5883\uff0c\u56e0\u6b64\u5728\u5206\u53d1\u4e4b\u524d\u6700\u597d\u8fdb\u884c\u5145\u5206\u6d4b\u8bd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u751f\u6210Python\u7684exe\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8bf8\u5982PyInstaller\u3001cx_Freeze\u3001py2exe\u7b49\u5de5\u5177\u3002P [&hellip;]","protected":false},"author":3,"featured_media":995282,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995280"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=995280"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995280\/revisions"}],"predecessor-version":[{"id":995284,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/995280\/revisions\/995284"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/995282"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=995280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=995280"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=995280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}