{"id":928255,"date":"2024-12-26T16:30:59","date_gmt":"2024-12-26T08:30:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/928255.html"},"modified":"2024-12-26T16:31:01","modified_gmt":"2024-12-26T08:31:01","slug":"python%e5%a6%82%e4%bd%95%e7%bc%96%e7%a8%8bexe","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/928255.html","title":{"rendered":"python\u5982\u4f55\u7f16\u7a0bexe"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064020\/07bdb4d6-b9ab-4838-9ebb-e9fd85781fe7.webp\" alt=\"python\u5982\u4f55\u7f16\u7a0bexe\" \/><\/p>\n<p><p> <strong>\u8981\u5c06Python\u811a\u672c\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u7684EXE\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u5de5\u5177\u3002PyInstaller\u662f\u6700\u5e38\u7528\u7684\u5de5\u5177\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u5927\u591a\u6570Python\u5e93\u3001\u8de8\u5e73\u53f0\u3001\u6613\u4e8e\u4f7f\u7528\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528PyInstaller\u5c06Python\u811a\u672c\u7f16\u8bd1\u6210EXE\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4ec0\u4e48\u662fPyInstaller\uff1f<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u652f\u6301Python 3.3\u53ca\u4ee5\u4e0a\u7684\u7248\u672c\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728Windows\u3001macOS\u3001Linux\u7b49\u591a\u4e2a\u5e73\u53f0\u4e0a\u8fd0\u884c\u3002PyInstaller\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u53ca\u5176\u4f9d\u8d56\u9879\u4e00\u8d77\u6253\u5305\uff0c\u4f7f\u5176\u6210\u4e3a\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b89\u88c5PyInstaller<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u4f7f\u7528PyInstaller\u4e4b\u524d\uff0c\u786e\u4fdd\u5df2\u5b89\u88c5Python\u73af\u5883\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528pip\u6765\u5b89\u88c5Python\u5305\u3002\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\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>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u663e\u793a\u7248\u672c\u53f7\uff0c\u5219\u8868\u793a\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528PyInstaller\u6253\u5305Python\u811a\u672c<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u5165\u5305\u542bPython\u811a\u672c\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u53ef\u6267\u884c\u6587\u4ef6\u7684\u201cdist\u201d\u76ee\u5f55\u548c\u4e00\u4e2a\u201cbuild\u201d\u76ee\u5f55\uff0c\u5176\u4e2d\u5305\u542b\u6784\u5efa\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u7684\u4e34\u65f6\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cPyInstaller\u4f1a\u5c06\u6240\u6709\u4f9d\u8d56\u9879\u548c\u53ef\u6267\u884c\u6587\u4ef6\u653e\u5728\u201cdist\u201d\u76ee\u5f55\u4e2d\u3002\u5982\u679c\u5e0c\u671b\u751f\u6210\u5355\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u4f1a\u5c06\u6240\u6709\u5185\u5bb9\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684EXE\u6587\u4ef6\uff0c\u65b9\u4fbf\u5206\u53d1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9690\u85cf\u63a7\u5236\u53f0\u7a97\u53e3<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4e0d\u5e0c\u671b\u5728\u8fd0\u884c\u65f6\u663e\u793a\u63a7\u5236\u53f0\u7a97\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --noconsole your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5bf9\u4e8eGUI\u5e94\u7528\u7a0b\u5e8f\u7279\u522b\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u4eec\u4e0d\u9700\u8981\u63a7\u5236\u53f0\u7a97\u53e3\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001PyInstaller\u9ad8\u7ea7\u914d\u7f6e<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u81ea\u5b9a\u4e49\u56fe\u6807<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u56fe\u6807\u66ff\u6362\u9ed8\u8ba4\u7684\u53ef\u6267\u884c\u6587\u4ef6\u56fe\u6807\u3002\u56fe\u6807\u6587\u4ef6\u5fc5\u987b\u662f.ico\u683c\u5f0f\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6307\u5b9a\u56fe\u6807\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --icon=your_icon.ico your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u6570\u636e\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u4f7f\u7528\u5916\u90e8\u6570\u636e\u6587\u4ef6\uff08\u5982\u56fe\u50cf\u3001\u914d\u7f6e\u6587\u4ef6\u7b49\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539.spec\u6587\u4ef6\u6765\u6dfb\u52a0\u8fd9\u4e9b\u6587\u4ef6\u3002\u9996\u5148\uff0c\u751f\u6210.spec\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --name=your_app_name --icon=your_icon.ico --add-data &quot;data_file;destination_folder&quot; your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728.spec\u6587\u4ef6\u4e2d\uff0c\u627e\u5230\u201cAnalysis\u201d\u90e8\u5206\uff0c\u6dfb\u52a0\u9700\u8981\u5305\u542b\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u52a8\u6001\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0cPython\u811a\u672c\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u52a8\u6001\u5e93\uff0c\u8fd9\u4e9b\u5e93\u53ef\u80fd\u4e0d\u4f1a\u81ea\u52a8\u88abPyInstaller\u68c0\u6d4b\u5230\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--hidden-import<\/code>\u9009\u9879\u6765\u624b\u52a8\u6307\u5b9a\u9700\u8981\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --hidden-import=module_name your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u51b3PyInstaller\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5305\u540e\u7684\u7a0b\u5e8f\u65e0\u6cd5\u8fd0\u884c<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u80fd\u662f\u7531\u4e8e\u7f3a\u5c11\u4f9d\u8d56\u9879\u6216\u8def\u5f84\u95ee\u9898\u5bfc\u81f4\u3002\u53ef\u4ee5\u901a\u8fc7\u67e5\u770b\u751f\u6210\u7684\u201cwarnyour_script.txt\u201d\u6587\u4ef6\u6765\u4e86\u89e3\u53ef\u80fd\u7684\u8b66\u544a\u6216\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5305\u7684\u5927\u5c0f\u8fc7\u5927<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528PyInstaller\u7684<code>--exclude-module<\/code>\u9009\u9879\u6765\u6392\u9664\u4e0d\u5fc5\u8981\u7684\u6a21\u5757\uff0c\u4ece\u800c\u51cf\u5c0f\u5305\u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --exclude-module=module_name your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u8bd5\u4fe1\u606f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u67e5\u770b\u66f4\u591a\u7684\u8c03\u8bd5\u4fe1\u606f\u6765\u89e3\u51b3\u95ee\u9898\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>--log-level<\/code>\u53c2\u6570\u6765\u63a7\u5236\u8f93\u51fa\u7684\u8be6\u7ec6\u7a0b\u5ea6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --log-level=DEBUG your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001PyInstaller\u7684\u4f18\u7f3a\u70b9<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f18\u70b9<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u8de8\u5e73\u53f0\u652f\u6301<\/strong>\uff1a\u652f\u6301Windows\u3001macOS\u548cLinux\u3002<\/li>\n<li><strong>\u6613\u4e8e\u4f7f\u7528<\/strong>\uff1a\u63d0\u4f9b\u7b80\u5355\u7684\u547d\u4ee4\u884c\u63a5\u53e3\u3002<\/li>\n<li><strong>\u652f\u6301\u5927\u591a\u6570\u5e93<\/strong>\uff1a\u80fd\u591f\u81ea\u52a8\u68c0\u6d4b\u5e76\u5305\u542b\u5927\u591a\u6570Python\u5e93\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u7f3a\u70b9<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u751f\u6210\u6587\u4ef6\u8f83\u5927<\/strong>\uff1a\u5373\u4f7f\u662f\u7b80\u5355\u7684\u811a\u672c\uff0c\u751f\u6210\u7684EXE\u6587\u4ef6\u4e5f\u53ef\u80fd\u8f83\u5927\u3002<\/li>\n<li><strong>\u590d\u6742\u9879\u76ee\u914d\u7f6e\u56f0\u96be<\/strong>\uff1a\u5bf9\u4e8e\u975e\u5e38\u590d\u6742\u7684\u9879\u76ee\uff0c\u53ef\u80fd\u9700\u8981\u624b\u52a8\u8c03\u6574.spec\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5176\u4ed6\u5c06Python\u7f16\u8bd1\u4e3aEXE\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>cx_Freeze<\/strong><\/p>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u4e0ePyInstaller\u7c7b\u4f3c\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u66f4\u9002\u5408\u7279\u5b9a\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5cx_Freeze\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528cx_Freeze\u521b\u5efasetup\u811a\u672c\uff0c\u5e76\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u6253\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>Py2exe<\/strong><\/p>\n<\/p>\n<p><p>Py2exe\u662f\u4e13\u95e8\u7528\u4e8eWindows\u5e73\u53f0\u7684\u6253\u5305\u5de5\u5177\u3002\u5b83\u4e0d\u652f\u6301Python 3.6\u4ee5\u4e0a\u7684\u7248\u672c\uff0c\u5bf9\u4e8e\u73b0\u4ee3\u9879\u76ee\u53ef\u80fd\u4e0d\u592a\u9002\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u7f16\u8bd1\u4e3aEXE\u6587\u4ef6\u662f\u5206\u53d1Python\u5e94\u7528\u7a0b\u5e8f\u7684\u5e38\u89c1\u9700\u6c42\u3002<strong>\u901a\u8fc7\u4f7f\u7528PyInstaller\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06Python\u811a\u672c\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u5e76\u6839\u636e\u9700\u8981\u8fdb\u884c\u81ea\u5b9a\u4e49\u914d\u7f6e<\/strong>\u3002\u6b64\u5916\uff0c\u4e86\u89e3\u5176\u4ed6\u5de5\u5177\uff08\u5982cx_Freeze\u3001Py2exe\uff09\u7684\u4f7f\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\uff0c\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u60a8\u9009\u62e9\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7\u5408\u7406\u914d\u7f6e\u548c\u8c03\u8bd5\uff0c\u53ef\u4ee5\u751f\u6210\u9002\u5408\u81ea\u5df1\u9700\u6c42\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4ece\u800c\u66f4\u65b9\u4fbf\u5730\u5206\u4eab\u548c\u90e8\u7f72Python\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u7a0b\u5e8f\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u8981\u5c06Python\u7a0b\u5e8f\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff08.exe\uff09\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5982PyInstaller\u3001cx_Freeze\u6216py2exe\u7b49\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u591f\u5c06Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u6253\u5305\u6210\u72ec\u7acb\u7684.exe\u6587\u4ef6\uff0c\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u3002\u4ee5PyInstaller\u4e3a\u4f8b\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4<code>pyinstaller your_script.py<\/code>\u6765\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u6709\u5173\u8be6\u7ec6\u6b65\u9aa4\uff0c\u5efa\u8bae\u67e5\u9605\u8fd9\u4e9b\u5de5\u5177\u7684\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<p><strong>\u4f7f\u7528\u54ea\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06Python\u811a\u672c\u7f16\u8bd1\u4e3a.exe\uff1f<\/strong><br \/>\u5728Python\u793e\u533a\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u5de5\u5177\u5305\u62ecPyInstaller\u3001cx_Freeze\u548cpy2exe\u3002PyInstaller\u662f\u6700\u53d7\u6b22\u8fce\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u652f\u6301\u591a\u5e73\u53f0\u6253\u5305\u3002cx_Freeze\u5219\u9002\u5408\u9700\u8981\u66f4\u9ad8\u81ea\u5b9a\u4e49\u9009\u9879\u7684\u7528\u6237\u3002py2exe\u4e3b\u8981\u7528\u4e8eWindows\u5e73\u53f0\uff0c\u64cd\u4f5c\u76f8\u5bf9\u7b80\u5355\u3002\u6839\u636e\u60a8\u7684\u9700\u6c42\u548c\u64cd\u4f5c\u7cfb\u7edf\uff0c\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002<\/p>\n<p><strong>\u8f6c\u6362\u4e3a.exe\u6587\u4ef6\u540e\uff0c\u5982\u4f55\u786e\u4fdd\u7a0b\u5e8f\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u6b63\u5e38\u8fd0\u884c\uff1f<\/strong><br \/>\u786e\u4fdd\u7a0b\u5e8f\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u6b63\u5e38\u8fd0\u884c\u7684\u5173\u952e\u662f\u6b63\u786e\u6253\u5305\u6240\u6709\u4f9d\u8d56\u9879\u3002\u5728\u4f7f\u7528PyInstaller\u7b49\u5de5\u5177\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u53c2\u6570\u6307\u5b9a\u8981\u5305\u542b\u7684\u6587\u4ef6\u548c\u5e93\u3002\u6b64\u5916\uff0c\u6d4b\u8bd5\u53ef\u6267\u884c\u6587\u4ef6\u5728\u4e0d\u540c\u73af\u5883\u4e0b\u7684\u8868\u73b0\u4e5f\u662f\u5fc5\u8981\u7684\uff0c\u53ef\u4ee5\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u673a\u5668\u4e0a\u8fd0\u884c\u4ee5\u9a8c\u8bc1\u5176\u529f\u80fd\u5b8c\u6574\u6027\u3002\u5982\u679c\u6709\u7279\u5b9a\u7684\u8d44\u6e90\u6587\u4ef6\uff0c\u786e\u4fdd\u5b83\u4eec\u5728\u6253\u5305\u65f6\u88ab\u5305\u542b\u5728\u5185\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06Python\u811a\u672c\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u7684EXE\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528PyInstaller\u3001cx_Freeze\u3001Py2exe [&hellip;]","protected":false},"author":3,"featured_media":928256,"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\/928255"}],"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=928255"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/928255\/revisions"}],"predecessor-version":[{"id":928258,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/928255\/revisions\/928258"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/928256"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=928255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=928255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=928255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}