{"id":1078979,"date":"2025-01-08T12:16:43","date_gmt":"2025-01-08T04:16:43","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1078979.html"},"modified":"2025-01-08T12:16:45","modified_gmt":"2025-01-08T04:16:45","slug":"%e5%a6%82%e4%bd%95%e5%81%9a%e4%b8%80%e4%b8%aapython-exe-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1078979.html","title":{"rendered":"\u5982\u4f55\u505a\u4e00\u4e2apython exe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182236\/3935ac56-e478-4e31-8f98-e13664152493.webp\" alt=\"\u5982\u4f55\u505a\u4e00\u4e2apython exe\" \/><\/p>\n<p><p> <strong>\u8981\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u3002<\/strong> \u8fd9\u4e9b\u5de5\u5177\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u4f8b\u5982PyInstaller\u901a\u5e38\u88ab\u8ba4\u4e3a\u662f\u6700\u7b80\u5355\u548c\u6700\u6d41\u884c\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u591a\u79cd\u5e73\u53f0\u5e76\u4e14\u6613\u4e8e\u4f7f\u7528\u3002\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u8bb2\u89e3\u5982\u4f55\u4f7f\u7528PyInstaller\u6765\u521b\u5efa\u4e00\u4e2aPython exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5PyInstaller<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5728\u4f60\u7684\u5f00\u53d1\u73af\u5883\u4e2d\u5b89\u88c5PyInstaller\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5PyInstaller\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u6b65\u9aa4\uff0c\u53ea\u9700\u8981\u4f60\u6253\u5f00\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u5e76\u8f93\u5165\u4e0a\u8ff0\u547d\u4ee4\u5373\u53ef\u3002PyInstaller\u5c06\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u5305\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u521b\u5efa\u57fa\u7840Python\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u5728\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aexe\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u6709\u4e00\u4e2a\u5df2\u7ecf\u7f16\u5199\u597d\u7684Python\u811a\u672c\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>hello.py<\/code>\u7684\u811a\u672c\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u811a\u672c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u662f\u6253\u5370\u4e00\u53e5\u8bdd\uff0c\u4f46\u662f\u8db3\u4ee5\u8bf4\u660e\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528PyInstaller\u751f\u6210exe\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8cPyInstaller\u4e4b\u540e\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aexe\u6587\u4ef6\u3002\u4f60\u9700\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u7684\u610f\u601d\u662f\u5c06<code>hello.py<\/code>\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>dist<\/code>\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u751f\u6210\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u9009\u9879\u6765\u5b9a\u5236\u4f60\u7684exe\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u4e0d\u60f3\u8981\u63a7\u5236\u53f0\u7a97\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--noconsole<\/code>\u9009\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --noconsole hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6df1\u5165\u7406\u89e3PyInstaller\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><h4>1\u3001PyInstaller\u7684\u57fa\u672c\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>PyInstaller\u7684\u57fa\u672c\u7528\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e00\u4e2a\u547d\u4ee4\u884c\u547d\u4ee4\u5c31\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210exe\u6587\u4ef6\u3002\u7136\u800c\uff0cPyInstaller\u8fd8\u6709\u8bb8\u591a\u9ad8\u7ea7\u9009\u9879\uff0c\u53ef\u4ee5\u8ba9\u4f60\u66f4\u7075\u6d3b\u5730\u63a7\u5236\u751f\u6210\u7684exe\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u751f\u6210\u7684exe\u6587\u4ef6\u7684\u540d\u79f0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --name my_program hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u751f\u6210\u7684exe\u6587\u4ef6\u7684\u540d\u79f0\u5c31\u4f1a\u662f<code>my_program.exe<\/code>\uff0c\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684<code>hello.exe<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6307\u5b9a\u56fe\u6807\u548c\u8d44\u6e90\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4e3a\u751f\u6210\u7684exe\u6587\u4ef6\u6307\u5b9a\u4e00\u4e2a\u56fe\u6807\u6587\u4ef6\uff08.ico\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --icon=app.ico hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684Python\u811a\u672c\u4f9d\u8d56\u4e8e\u4e00\u4e9b\u5916\u90e8\u8d44\u6e90\u6587\u4ef6\uff08\u4f8b\u5982\u914d\u7f6e\u6587\u4ef6\u3001\u56fe\u50cf\u7b49\uff09\uff0c\u4f60\u9700\u8981\u544a\u8bc9PyInstaller\u5c06\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\u5305\u542b\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>--add-data<\/code>\u9009\u9879\u6765\u6307\u5b9a\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --add-data &#39;config.yaml;.&#39; hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u544a\u8bc9PyInstaller\u5c06<code>config.yaml<\/code>\u6587\u4ef6\u5305\u542b\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u4e2d\uff0c\u5e76\u5c06\u5176\u653e\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u5904\u7406\u9690\u85cf\u7684\u5bfc\u5165<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0cPyInstaller\u53ef\u80fd\u65e0\u6cd5\u6b63\u786e\u8bc6\u522b\u4f60\u7684Python\u811a\u672c\u4e2d\u7684\u6240\u6709\u5bfc\u5165\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u9700\u8981\u624b\u52a8\u544a\u8bc9PyInstaller\u54ea\u4e9b\u6a21\u5757\u9700\u8981\u5305\u542b\u5728\u751f\u6210\u7684exe\u6587\u4ef6\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>--hidden-import<\/code>\u9009\u9879\u6765\u6307\u5b9a\u8fd9\u4e9b\u9690\u85cf\u7684\u5bfc\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --hidden-import=module_name hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u8c03\u8bd5\u548c\u4f18\u5316<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u7684exe\u6587\u4ef6\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\uff0c\u4f8b\u5982\u8fd0\u884c\u65f6\u7f3a\u5c11\u67d0\u4e9b\u5e93\u6216\u8005\u4f9d\u8d56\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u67e5\u770bPyInstaller\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\u6765\u8c03\u8bd5\u8fd9\u4e9b\u95ee\u9898\u3002\u65e5\u5fd7\u6587\u4ef6\u901a\u5e38\u4f4d\u4e8e<code>build<\/code>\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u51cf\u5c11\u6587\u4ef6\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u751f\u6210\u7684exe\u6587\u4ef6\u901a\u5e38\u4f1a\u6bd4\u8f83\u5927\uff0c\u8fd9\u662f\u56e0\u4e3aPyInstaller\u4f1a\u5c06\u6240\u6709\u7684\u4f9d\u8d56\u5e93\u90fd\u5305\u542b\u5728exe\u6587\u4ef6\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u4f18\u5316\u9009\u9879\u6765\u51cf\u5c11\u6587\u4ef6\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>--exclude-module<\/code>\u9009\u9879\u6765\u6392\u9664\u4e00\u4e9b\u4e0d\u5fc5\u8981\u7684\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --exclude-module=tkinter hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528UPX\u538b\u7f29<\/h4>\n<\/p>\n<p><p>UPX\u662f\u4e00\u79cd\u6d41\u884c\u7684\u53ef\u6267\u884c\u6587\u4ef6\u538b\u7f29\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528UPX\u6765\u8fdb\u4e00\u6b65\u51cf\u5c0f\u751f\u6210\u7684exe\u6587\u4ef6\u7684\u5927\u5c0f\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5UPX\uff0c\u7136\u540e\u5728PyInstaller\u547d\u4ee4\u4e2d\u6dfb\u52a0<code>--upx-dir<\/code>\u9009\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --upx-dir=\/path\/to\/upx hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u751f\u6210\u5b89\u88c5\u5305<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5e0c\u671b\u5c06\u751f\u6210\u7684exe\u6587\u4ef6\u5206\u53d1\u7ed9\u5176\u4ed6\u7528\u6237\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u5b89\u88c5\u5305\u751f\u6210\u5de5\u5177\uff0c\u4f8b\u5982Inno Setup\u6216\u8005NSIS\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u4e00\u4e2a\u5b89\u88c5\u7a0b\u5e8f\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5\u548c\u5378\u8f7d\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684Inno Setup\u811a\u672c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-ini\">[Setup]<\/p>\n<p>AppName=My Program<\/p>\n<p>AppVersion=1.0<\/p>\n<p>DefaultDirName={pf}\\My Program<\/p>\n<p>DefaultGroupName=My Program<\/p>\n<p>[Files]<\/p>\n<p>Source: &quot;dist\\my_program.exe&quot;; DestDir: &quot;{app}&quot;; Flags: ignoreversion<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u8fd9\u4e2a\u811a\u672c\u4fdd\u5b58\u4e3a<code>setup.iss<\/code>\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528Inno Setup\u7f16\u8bd1\u5668\u7f16\u8bd1\u8be5\u811a\u672c\uff0c\u5373\u53ef\u751f\u6210\u4e00\u4e2a\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3aexe\u6587\u4ef6\u662f\u4e00\u4e2a\u975e\u5e38\u5b9e\u7528\u7684\u6280\u5de7\uff0c\u7279\u522b\u662f\u5f53\u4f60\u5e0c\u671b\u5c06\u4f60\u7684Python\u5e94\u7528\u7a0b\u5e8f\u5206\u53d1\u7ed9\u4e0d\u4f7f\u7528Python\u73af\u5883\u7684\u7528\u6237\u65f6\u3002PyInstaller\u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u751f\u6210exe\u6587\u4ef6\u3002\u901a\u8fc7\u5b66\u4e60\u548c\u638c\u63e1PyInstaller\u7684\u5404\u79cd\u9009\u9879\u548c\u6280\u5de7\uff0c\u4f60\u53ef\u4ee5\u751f\u6210\u66f4\u52a0\u9ad8\u6548\u548c\u7075\u6d3b\u7684exe\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u5229\u7528\u5176\u4ed6\u5de5\u5177\u548c\u6280\u5de7\uff0c\u5982UPX\u538b\u7f29\u548c\u5b89\u88c5\u5305\u751f\u6210\u5de5\u5177\uff0c\u8fdb\u4e00\u6b65\u4f18\u5316\u548c\u7f8e\u5316\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u5206\u53d1\u65b9\u5f0f\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u8ba9\u4f60\u80fd\u591f\u66f4\u597d\u5730\u5229\u7528Python\u8fdb\u884c\u5f00\u53d1\u548c\u5206\u53d1\u5e94\u7528\u7a0b\u5e8f\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\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u591f\u5c06Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u5355\u4e00\u7684.exe\u6587\u4ef6\uff0c\u4fbf\u4e8e\u5728\u6ca1\u6709\u5b89\u88c5Python\u73af\u5883\u7684\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002\u5177\u4f53\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u5b89\u88c5\u6240\u9700\u5de5\u5177\uff0c\u4f7f\u7528\u547d\u4ee4\u884c\u8f93\u5165\u76f8\u5e94\u7684\u8f6c\u6362\u547d\u4ee4\uff0c\u6700\u540e\u5728\u6307\u5b9a\u76ee\u5f55\u627e\u5230\u751f\u6210\u7684.exe\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5236\u4f5cPython EXE\u6587\u4ef6\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u5236\u4f5cPython EXE\u6587\u4ef6\u65f6\uff0c\u786e\u4fdd\u811a\u672c\u4e2d\u7684\u6240\u6709\u4f9d\u8d56\u5e93\u90fd\u5df2\u5b89\u88c5\u5e76\u5728\u4ee3\u7801\u4e2d\u6b63\u786e\u5f15\u7528\u3002\u6b64\u5916\uff0c\u8003\u8651\u5230\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u517c\u5bb9\u6027\uff0c\u5efa\u8bae\u5728\u76ee\u6807\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fdb\u884c\u6253\u5305\u6d4b\u8bd5\u3002\u52a1\u5fc5\u68c0\u67e5\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u662f\u5426\u5305\u542b\u6240\u6709\u5fc5\u8981\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u5982\u56fe\u7247\u3001\u6570\u636e\u6587\u4ef6\u7b49\uff0c\u8fd9\u4e9b\u6587\u4ef6\u53ef\u80fd\u662f\u7a0b\u5e8f\u8fd0\u884c\u6240\u5fc5\u9700\u7684\u3002<\/p>\n<p><strong>\u5982\u4f55\u89e3\u51b3Python EXE\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5e38\u89c1\u7684\u95ee\u9898\u5305\u62ec\u7f3a\u5c11\u4f9d\u8d56\u9879\u3001\u8def\u5f84\u9519\u8bef\u6216\u6743\u9650\u4e0d\u8db3\u7b49\u3002\u5982\u679c\u9047\u5230\u8fd9\u4e9b\u95ee\u9898\uff0c\u9996\u5148\u68c0\u67e5\u5e76\u66f4\u65b0\u76f8\u5173\u5e93\uff0c\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u9879\u90fd\u5df2\u6b63\u786e\u5b89\u88c5\u5e76\u5728\u4ee3\u7801\u4e2d\u5f15\u7528\u3002\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884c\u8f6c\u6362\u5de5\u5177\u65f6\uff0c\u53ef\u4ee5\u67e5\u770b\u8f93\u51fa\u4fe1\u606f\u4ee5\u83b7\u53d6\u9519\u8bef\u63d0\u793a\uff0c\u9488\u5bf9\u8fd9\u4e9b\u63d0\u793a\u8fdb\u884c\u9010\u6b65\u6392\u67e5\u548c\u4fee\u590d\u3002\u6b64\u5916\uff0c\u67e5\u9605\u76f8\u5173\u6587\u6863\u548c\u793e\u533a\u8bba\u575b\u4e5f\u662f\u89e3\u51b3\u95ee\u9898\u7684\u6709\u6548\u9014\u5f84\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff08exe\uff09\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001P [&hellip;]","protected":false},"author":3,"featured_media":1078987,"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\/1078979"}],"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=1078979"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1078979\/revisions"}],"predecessor-version":[{"id":1078989,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1078979\/revisions\/1078989"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1078987"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1078979"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1078979"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1078979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}