{"id":989505,"date":"2024-12-27T08:12:11","date_gmt":"2024-12-27T00:12:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/989505.html"},"modified":"2024-12-27T08:12:13","modified_gmt":"2024-12-27T00:12:13","slug":"python%e9%a1%b9%e7%9b%ae%e5%a6%82%e4%bd%95%e6%89%93%e5%8c%85%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/989505.html","title":{"rendered":"python\u9879\u76ee\u5982\u4f55\u6253\u5305\u5e94\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064654\/0356a7cf-f9ae-4c34-a273-284b23ced1c4.webp\" alt=\"python\u9879\u76ee\u5982\u4f55\u6253\u5305\u5e94\u7528\" \/><\/p>\n<p><p> <strong>Python\u9879\u76ee\u6253\u5305\u5e94\u7528\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u3001\u914d\u7f6e\u9879\u76ee\u6587\u4ef6\u3001\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3001\u6d4b\u8bd5\u4e0e\u53d1\u5e03\u3002<\/strong>  <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u662f\u5173\u952e\u3002\u4e0d\u540c\u7684\u5de5\u5177\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u5e38\u7528\u7684\u6709PyInstaller\u3001cx_Freeze\u3001py2exe\u7b49\u3002PyInstaller\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u9009\u62e9\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u591a\u5e73\u53f0\uff0c\u4f7f\u7528\u7b80\u5355\uff0c\u5e76\u80fd\u5904\u7406\u5927\u90e8\u5206\u7684\u4f9d\u8d56\u95ee\u9898\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa.spec\u6587\u4ef6\u6765\u914d\u7f6ePyInstaller\u7684\u6253\u5305\u884c\u4e3a\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4\u884c\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u6253\u5305\u540e\u7684\u5e94\u7528\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\uff0c\u6700\u540e\u662f\u53d1\u5e03\u9636\u6bb5\uff0c\u53ef\u4ee5\u9009\u62e9\u901a\u8fc7\u5404\u7c7b\u8f6f\u4ef6\u5206\u53d1\u5e73\u53f0\u6216\u8005\u76f4\u63a5\u5206\u53d1\u7ed9\u7528\u6237\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u6253\u5305\u5de5\u5177\u65f6\uff0c\u9700\u8981\u8003\u8651\u9879\u76ee\u7684\u590d\u6742\u6027\u3001\u76ee\u6807\u5e73\u53f0\u4ee5\u53ca\u9700\u8981\u5904\u7406\u7684\u4f9d\u8d56\u7c7b\u578b\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>PyInstaller<\/strong><br \/>PyInstaller\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684Python\u6253\u5305\u5de5\u5177\uff0c\u652f\u6301Windows\u3001Linux\u548cmacOS\u3002\u5b83\u80fd\u591f\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u4e14\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u65e0\u9700\u4fee\u6539\u4ee3\u7801\u5373\u53ef\u4f7f\u7528\u3002PyInstaller\u901a\u8fc7\u5206\u6790Python\u811a\u672c\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u81ea\u52a8\u5c06\u6240\u6709\u9700\u8981\u7684\u6a21\u5757\u548c\u5e93\u6253\u5305\u5728\u4e00\u8d77\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>cx_Freeze<\/strong><br \/>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\uff0c\u5b83\u652f\u6301\u8de8\u5e73\u53f0\u6253\u5305\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5728\u591a\u4e2a\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684\u9879\u76ee\u3002cx_Freeze\u5141\u8bb8\u5f00\u53d1\u8005\u81ea\u5b9a\u4e49\u6253\u5305\u8fc7\u7a0b\uff0c\u901a\u8fc7\u7f16\u5199setup\u811a\u672c\u6765\u63a7\u5236\u6253\u5305\u884c\u4e3a\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>py2exe<\/strong><br \/>py2exe\u662f\u9488\u5bf9Windows\u5e73\u53f0\u7684\u6253\u5305\u5de5\u5177\uff0c\u4e13\u95e8\u7528\u4e8e\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u4e3aWindows\u53ef\u6267\u884c\u6587\u4ef6\u3002\u867d\u7136\u5b83\u53ea\u652f\u6301Windows\uff0c\u4f46\u5bf9\u4e8e\u7eafWindows\u9879\u76ee\u6765\u8bf4\uff0c\u5b83\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u914d\u7f6e\u9879\u76ee\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u6253\u5305\u5de5\u5177\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u9879\u76ee\u7ed3\u6784\u6e05\u6670\uff0c\u6240\u6709\u7684\u4f9d\u8d56\u5173\u7cfb\u5df2\u7ecf\u7406\u987a\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u9879\u76ee\u7ed3\u6784<\/strong><br \/>\u4e00\u4e2a\u6e05\u6670\u7684\u9879\u76ee\u7ed3\u6784\u6709\u52a9\u4e8e\u6253\u5305\u5de5\u5177\u6b63\u786e\u8bc6\u522b\u9879\u76ee\u6587\u4ef6\u3002\u901a\u5e38\uff0c\u4e00\u4e2aPython\u9879\u76ee\u5305\u542b\u4ee5\u4e0b\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>src\/<\/code>\uff1a\u5b58\u653e\u6e90\u4ee3\u7801\u6587\u4ef6\u3002<\/li>\n<li><code>requirements.txt<\/code>\uff1a\u5217\u51fa\u9879\u76ee\u6240\u9700\u7684\u6240\u6709\u4f9d\u8d56\u5e93\u3002<\/li>\n<li><code>setup.py<\/code>\uff1a\u7528\u4e8e\u914d\u7f6e\u9879\u76ee\u7684\u5b89\u88c5\u4fe1\u606f\uff08\u5bf9\u4e8e\u4f7f\u7528cx_Freeze\u7684\u9879\u76ee\uff09\u3002<\/li>\n<li><code>dist\/<\/code>\uff1a\u6253\u5305\u540e\u7684\u53ef\u6267\u884c\u6587\u4ef6\u8f93\u51fa\u76ee\u5f55\u3002<\/li>\n<li><code>build\/<\/code>\uff1a\u6253\u5305\u8fc7\u7a0b\u4e2d\u4ea7\u751f\u7684\u4e34\u65f6\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6ePyInstaller<\/strong><br \/>\u4f7f\u7528PyInstaller\u6253\u5305\u9879\u76ee\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u6216.spec\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u3002\u547d\u4ee4\u884c\u53c2\u6570\u7528\u4e8e\u7b80\u5355\u7684\u6253\u5305\u9700\u6c42\uff0c\u800c.spec\u6587\u4ef6\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p>\u4f7f\u7528\u547d\u4ee4\u884c\u53c2\u6570\uff1a  <\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --windowed your_script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d<code>--onefile<\/code>\u9009\u9879\u4f1a\u5c06\u6240\u6709\u7684\u4f9d\u8d56\u6253\u5305\u6210\u4e00\u4e2a\u5355\u72ec\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u800c<code>--windowed<\/code>\u9009\u9879\u5219\u7528\u4e8e\u9690\u85cf\u7ec8\u7aef\u7a97\u53e3\uff08\u9002\u7528\u4e8eGUI\u5e94\u7528\uff09\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa.spec\u6587\u4ef6\uff1a<br \/>\u901a\u8fc7PyInstaller\u751f\u6210.spec\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u624b\u52a8\u7f16\u8f91\u8be5\u6587\u4ef6\u4ee5\u81ea\u5b9a\u4e49\u6253\u5305\u884c\u4e3a\u3002\u5e38\u89c1\u7684\u914d\u7f6e\u5305\u62ec\u6dfb\u52a0\u6570\u636e\u6587\u4ef6\u3001\u4fee\u6539\u5165\u53e3\u6587\u4ef6\u3001\u8bbe\u7f6e\u56fe\u6807\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u662f\u6253\u5305\u8fc7\u7a0b\u7684\u5173\u952e\u6b65\u9aa4\uff0c\u9700\u8981\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u9002\u5f53\u7684\u9009\u9879\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528PyInstaller\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong><br \/>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller your_script.spec<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f1a\u88ab\u653e\u7f6e\u5728<code>dist\/<\/code>\u76ee\u5f55\u4e0b\u3002\u6b64\u65f6\uff0c\u6240\u6709\u7684\u4f9d\u8d56\u5e93\u548c\u8d44\u6e90\u6587\u4ef6\u90fd\u5df2\u88ab\u6253\u5305\u5728\u4e00\u8d77\uff0c\u7528\u6237\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u5373\u53ef\u8fd0\u884c\u8be5\u5e94\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528cx_Freeze\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6<\/strong><br \/>\u901a\u8fc7\u7f16\u5199<code>setup.py<\/code>\u6587\u4ef6\u6765\u914d\u7f6ecx_Freeze\u7684\u6253\u5305\u884c\u4e3a\uff0c\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u4f1a\u5728<code>build\/<\/code>\u76ee\u5f55\u4e0b\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6d4b\u8bd5\u4e0e\u53d1\u5e03<\/p>\n<\/p>\n<p><p>\u5728\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u540e\uff0c\u9700\u8981\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6d4b\u8bd5\u6253\u5305\u540e\u7684\u5e94\u7528<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u6d4b\u8bd5\u5e94\u7528\u7684\u8fd0\u884c\u60c5\u51b5\u3002<\/li>\n<li>\u9a8c\u8bc1\u6240\u6709\u7684\u529f\u80fd\u662f\u5426\u6b63\u5e38\u3002<\/li>\n<li>\u68c0\u67e5\u8d44\u6e90\u6587\u4ef6\u662f\u5426\u5b8c\u6574\uff0c\u8def\u5f84\u662f\u5426\u6b63\u786e\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u53d1\u5e03\u5e94\u7528<\/strong>  <\/p>\n<\/p>\n<ul>\n<li>\u5c06\u6253\u5305\u597d\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e0a\u4f20\u5230\u8f6f\u4ef6\u5206\u53d1\u5e73\u53f0\uff0c\u5982GitHub Releases\u3001PyPI\u3001\u6216\u8005\u81ea\u5efa\u7684\u5206\u53d1\u670d\u52a1\u5668\u3002<\/li>\n<li>\u7f16\u5199\u7528\u6237\u624b\u518c\uff0c\u8bf4\u660e\u5982\u4f55\u5b89\u88c5\u548c\u4f7f\u7528\u5e94\u7528\u3002<\/li>\n<li>\u6839\u636e\u7528\u6237\u53cd\u9988\uff0c\u6301\u7eed\u6539\u8fdb\u5e94\u7528\u5e76\u66f4\u65b0\u6253\u5305\u6587\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u987a\u5229\u5730\u5c06Python\u9879\u76ee\u6253\u5305\u4e3a\u53ef\u72ec\u7acb\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u65b9\u4fbf\u7528\u6237\u4f7f\u7528\u3002\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u548c\u914d\u7f6e\u9879\u76ee\u6587\u4ef6\u662f\u6210\u529f\u6253\u5305\u7684\u5173\u952e\uff0c\u800c\u6d4b\u8bd5\u4e0e\u53d1\u5e03\u5219\u786e\u4fdd\u5e94\u7528\u7684\u8d28\u91cf\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u9879\u76ee\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff1f<\/strong><br \/>\u4e3a\u4e86\u5c06Python\u9879\u76ee\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982PyInstaller\u6216cx_Freeze\u7b49\u5de5\u5177\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u591f\u5c06Python\u4ee3\u7801\u53ca\u5176\u4f9d\u8d56\u9879\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u7528\u6237\u53ea\u9700\u8fd0\u884c\u8fd9\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u5373\u53ef\u4f7f\u7528\u5e94\u7528\uff0c\u800c\u65e0\u9700\u5b89\u88c5Python\u73af\u5883\u3002\u5177\u4f53\u6b65\u9aa4\u901a\u5e38\u5305\u62ec\u5b89\u88c5\u6253\u5305\u5de5\u5177\u3001\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u8fd0\u884c\u6253\u5305\u547d\u4ee4\uff0c\u4ee5\u53ca\u5728\u751f\u6210\u7684\u8f93\u51fa\u76ee\u5f55\u4e2d\u627e\u5230\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p><strong>\u6253\u5305Python\u9879\u76ee\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4f9d\u8d56\u9879\uff1f<\/strong><br \/>\u5728\u6253\u5305Python\u9879\u76ee\u65f6\uff0c\u786e\u4fdd\u5c06\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\u5305\u542b\u5728\u5185\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u53ef\u4ee5\u4f7f\u7528<code>requirements.txt<\/code>\u6587\u4ef6\u6765\u5217\u51fa\u6240\u6709\u4f9d\u8d56\u9879\uff0c\u6253\u5305\u5de5\u5177\u4f1a\u8bfb\u53d6\u8be5\u6587\u4ef6\u5e76\u81ea\u52a8\u5c06\u5176\u5305\u542b\u5728\u5185\u3002\u8fd8\u8981\u6ce8\u610f\u4e00\u4e9b\u52a8\u6001\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u8fd9\u4e9b\u53ef\u80fd\u4e0d\u4f1a\u88ab\u5de5\u5177\u81ea\u52a8\u68c0\u6d4b\u5230\uff0c\u9700\u624b\u52a8\u6dfb\u52a0\u5230\u914d\u7f6e\u6587\u4ef6\u4e2d\u3002<\/p>\n<p><strong>\u6253\u5305\u540e\u7684\u5e94\u7528\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u80fd\u5426\u8fd0\u884c\uff1f<\/strong><br \/>\u6253\u5305\u540e\u7684Python\u5e94\u7528\u901a\u5e38\u662f\u7279\u5b9a\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u3002\u4f8b\u5982\uff0c\u4f7f\u7528PyInstaller\u6253\u5305\u7684Windows\u5e94\u7528\u65e0\u6cd5\u5728Linux\u6216macOS\u4e0a\u76f4\u63a5\u8fd0\u884c\u3002\u5982\u679c\u9700\u8981\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u4f7f\u7528\uff0c\u5efa\u8bae\u5728\u6bcf\u4e2a\u76ee\u6807\u5e73\u53f0\u4e0a\u5206\u522b\u8fdb\u884c\u6253\u5305\u3002\u786e\u4fdd\u5728\u6bcf\u4e2a\u73af\u5883\u4e2d\u6d4b\u8bd5\u5e94\u7528\u7684\u529f\u80fd\uff0c\u4ee5\u907f\u514d\u5e73\u53f0\u95f4\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u9879\u76ee\u6253\u5305\u5e94\u7528\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6253\u5305\u5de5\u5177\u3001\u914d\u7f6e\u9879\u76ee\u6587\u4ef6\u3001\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3001\u6d4b\u8bd5\u4e0e\u53d1\u5e03\u3002 \u5176\u4e2d\uff0c\u9009\u62e9 [&hellip;]","protected":false},"author":3,"featured_media":989512,"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\/989505"}],"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=989505"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989505\/revisions"}],"predecessor-version":[{"id":989515,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/989505\/revisions\/989515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/989512"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=989505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=989505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=989505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}