{"id":980069,"date":"2024-12-27T06:51:32","date_gmt":"2024-12-26T22:51:32","guid":{"rendered":""},"modified":"2024-12-27T06:51:34","modified_gmt":"2024-12-26T22:51:34","slug":"python%e5%a6%82%e4%bd%95%e5%88%b6%e4%bd%9c%e5%ae%89%e8%a3%85%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/980069.html","title":{"rendered":"python\u5982\u4f55\u5236\u4f5c\u5b89\u88c5\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205626\/e702d203-c41e-43ca-9df5-b74d2f6154a6.webp\" alt=\"python\u5982\u4f55\u5236\u4f5c\u5b89\u88c5\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u5236\u4f5cPython\u5b89\u88c5\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u6765\u5b9e\u73b0\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002PyInstaller\u662f\u5176\u4e2d\u6700\u6d41\u884c\u7684\u5de5\u5177\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u591a\u4e2a\u5e73\u53f0\u3001\u4f7f\u7528\u7b80\u5355\u3001\u529f\u80fd\u5f3a\u5927\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528PyInstaller\u6765\u5236\u4f5cPython\u5b89\u88c5\u7a0b\u5e8f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001PyInstaller\u7684\u7b80\u4ecb\u4e0e\u5b89\u88c5<\/p>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u53ef\u4ee5\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u5b83\u652f\u6301Windows\u3001macOS\u548cLinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u4e14\u53ef\u4ee5\u5c06\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u4f9d\u8d56\u9879\u6253\u5305\u5728\u4e00\u8d77\uff0c\u4ece\u800c\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u673a\u5668\u4e0a\u8fd0\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PyInstaller<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyInstaller\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u4e0a\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u3002\u63a5\u4e0b\u6765\uff0c\u901a\u8fc7pip\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>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>pyinstaller --version<\/code>\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528PyInstaller\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyInstaller\u6253\u5305Python\u5e94\u7528\u7a0b\u5e8f\u76f8\u5bf9\u7b80\u5355\uff0c\u4e3b\u8981\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaPython\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u3002\u4f8b\u5982\uff0c\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\">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<\/li>\n<li>\n<p><strong>\u6253\u5305\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u6253\u5305Python\u811a\u672c\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>\u5176\u4e2d\uff0c<code>--onefile<\/code>\u9009\u9879\u8868\u793a\u5c06\u6240\u6709\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210\u7684\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u6253\u5305\u5b8c\u6210\u540e\uff0cPyInstaller\u5c06\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a<code>dist<\/code>\u76ee\u5f55\uff0c\u91cc\u9762\u5305\u542b\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6<code>hello<\/code>\uff08\u5728Windows\u4e0a\u4e3a<code>hello.exe<\/code>\uff09\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001PyInstaller\u7684\u9ad8\u7ea7\u9009\u9879<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5bf9PyInstaller\u7684\u6253\u5305\u8fc7\u7a0b\u8fdb\u884c\u66f4\u591a\u7684\u5b9a\u5236\uff0c\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684\u9ad8\u7ea7\u9009\u9879\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6dfb\u52a0\u56fe\u6807<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>--icon<\/code>\u9009\u9879\u4e3a\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u6dfb\u52a0\u56fe\u6807\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>\u5176\u4e2d\uff0c<code>app.ico<\/code>\u662f\u56fe\u6807\u6587\u4ef6\u7684\u8def\u5f84\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>\u5bf9\u4e8eGUI\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--noconsole<\/code>\u9009\u9879\u6765\u9690\u85cf\u63a7\u5236\u53f0\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --noconsole hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5305\u542b\u6570\u636e\u6587\u4ef6<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u989d\u5916\u7684\u6570\u636e\u6587\u4ef6\uff08\u5982\u914d\u7f6e\u6587\u4ef6\u3001\u56fe\u50cf\u7b49\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528<code>--add-data<\/code>\u9009\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile --add-data &#39;data.txt;.&#39; hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>data.txt<\/code>\u662f\u6570\u636e\u6587\u4ef6\u7684\u8def\u5f84\uff0c<code>.<\/code>\u8868\u793a\u76f8\u5bf9\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528PyInstaller\u521b\u5efa\u5b89\u88c5\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u5de5\u5177\uff08\u5982Inno Setup\u3001NSIS\u7b49\uff09\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u6253\u5305\u6210\u5b89\u88c5\u7a0b\u5e8f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f7f\u7528Inno Setup\u521b\u5efa\u5b89\u88c5\u7a0b\u5e8f\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4e0b\u8f7d\u5e76\u5b89\u88c5Inno Setup<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5Inno Setup\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaInno Setup\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Inno Setup\u811a\u672c\u6587\u4ef6\uff08.iss\uff09\uff0c\u5e76\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-ini\">[Setup]<\/p>\n<p>AppName=HelloApp<\/p>\n<p>AppVersion=1.0<\/p>\n<p>DefaultDirName={pf}\\HelloApp<\/p>\n<p>DefaultGroupName=HelloApp<\/p>\n<p>[Files]<\/p>\n<p>Source: &quot;dist\\hello.exe&quot;; DestDir: &quot;{app}&quot;; Flags: ignoreversion<\/p>\n<p>[Icons]<\/p>\n<p>Name: &quot;{group}\\HelloApp&quot;; Filename: &quot;{app}\\hello.exe&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u8bd1\u5b89\u88c5\u7a0b\u5e8f<\/strong><\/p>\n<\/p>\n<p><p>\u5728Inno Setup\u4e2d\u6253\u5f00\u811a\u672c\u6587\u4ef6\uff0c\u7136\u540e\u70b9\u51fb\u201c\u7f16\u8bd1\u201d\u6309\u94ae\u751f\u6210\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5176\u4ed6Python\u6253\u5305\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u9664\u4e86PyInstaller\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u5de5\u5177\u53ef\u4ee5\u7528\u4e8ePython\u5e94\u7528\u7a0b\u5e8f\u7684\u6253\u5305\uff1a<\/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\u6d41\u884c\u7684Python\u6253\u5305\u5de5\u5177\uff0c\u652f\u6301Windows\u3001macOS\u548cLinux\u3002\u4e0ePyInstaller\u7c7b\u4f3c\uff0ccx_Freeze\u4e5f\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Py2exe<\/strong><\/p>\n<\/p>\n<p><p>Py2exe\u662f\u4e13\u95e8\u4e3aWindows\u5e73\u53f0\u8bbe\u8ba1\u7684Python\u6253\u5305\u5de5\u5177\uff0c\u80fd\u591f\u5c06Python\u811a\u672c\u6253\u5305\u6210Windows\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Nuitka<\/strong><\/p>\n<\/p>\n<p><p>Nuitka\u662f\u4e00\u4e2aPython\u7f16\u8bd1\u5668\uff0c\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u6210C\u4ee3\u7801\uff0c\u7136\u540e\u518d\u7f16\u8bd1\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002\u76f8\u8f83\u4e8e\u5176\u4ed6\u6253\u5305\u5de5\u5177\uff0cNuitka\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u63a2\u8ba8\u4e86\u5982\u4f55\u4f7f\u7528PyInstaller\u6765\u5236\u4f5cPython\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5305\u62ec\u5176\u5b89\u88c5\u3001\u57fa\u672c\u7528\u6cd5\u548c\u9ad8\u7ea7\u9009\u9879\u3002\u6b64\u5916\uff0c\u8fd8\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Inno Setup\u5c06\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u6253\u5305\u6210\u5b89\u88c5\u7a0b\u5e8f\u3002\u6700\u540e\uff0c\u63d0\u5230\u4e86\u5176\u4ed6\u4e00\u4e9bPython\u6253\u5305\u5de5\u5177\u5982cx_Freeze\u3001Py2exe\u548cNuitka\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u65b9\u4fbf\u7528\u6237\u5728\u6ca1\u6709Python\u73af\u5883\u7684\u673a\u5668\u4e0a\u8fd0\u884c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u53ef\u6267\u884c\u7684\u5b89\u88c5\u7a0b\u5e8f\uff1f<\/strong><br \/>\u521b\u5efa\u53ef\u6267\u884c\u7684\u5b89\u88c5\u7a0b\u5e8f\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5de5\u5177\uff0c\u6700\u5e38\u89c1\u7684\u5305\u62ecPyInstaller\u548ccx_Freeze\u3002PyInstaller\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u800ccx_Freeze\u5219\u9002\u5408\u521b\u5efa\u8de8\u5e73\u53f0\u7684\u5b89\u88c5\u5305\u3002\u60a8\u53ea\u9700\u5b89\u88c5\u8fd9\u4e9b\u5de5\u5177\uff0c\u5e76\u6309\u7167\u76f8\u5173\u6587\u6863\u4e2d\u7684\u6b65\u9aa4\u8fdb\u884c\u914d\u7f6e\u5373\u53ef\u3002<\/p>\n<p><strong>\u5728\u5236\u4f5c\u5b89\u88c5\u7a0b\u5e8f\u65f6\uff0c\u6211\u9700\u8981\u8003\u8651\u54ea\u4e9b\u4f9d\u8d56\u9879\uff1f<\/strong><br \/>\u5728\u6253\u5305Python\u5e94\u7528\u65f6\uff0c\u786e\u4fdd\u6240\u6709\u4f9d\u8d56\u9879\u90fd\u5df2\u5305\u542b\u975e\u5e38\u91cd\u8981\u3002\u4f7f\u7528PyInstaller\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>--hidden-import<\/code>\u53c2\u6570\u624b\u52a8\u6307\u5b9a\u7f3a\u5c11\u7684\u6a21\u5757\u3002\u6b64\u5916\uff0c\u5efa\u8bae\u63d0\u524d\u68c0\u67e5\u60a8\u7684requirements.txt\u6587\u4ef6\uff0c\u4ee5\u786e\u4fdd\u6240\u6709\u7b2c\u4e09\u65b9\u5e93\u90fd\u88ab\u6b63\u786e\u6253\u5305\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5b89\u88c5\u7a0b\u5e8f\u4e2d\u6dfb\u52a0\u56fe\u6807\u548c\u5176\u4ed6\u8d44\u6e90\u6587\u4ef6\uff1f<\/strong><br \/>\u5728\u4f7f\u7528PyInstaller\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>--icon<\/code>\u53c2\u6570\u6307\u5b9a\u5e94\u7528\u7a0b\u5e8f\u56fe\u6807\u3002\u800c\u5bf9\u4e8e\u5176\u4ed6\u8d44\u6e90\u6587\u4ef6\uff0c\u5982\u56fe\u7247\u6216\u914d\u7f6e\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u5728\u6253\u5305\u65f6\u901a\u8fc7<code>--add-data<\/code>\u53c2\u6570\u5c06\u5b83\u4eec\u5305\u542b\u5728\u5185\u3002\u786e\u4fdd\u5728\u5e94\u7528\u7a0b\u5e8f\u8fd0\u884c\u65f6\u80fd\u591f\u6b63\u786e\u5f15\u7528\u8fd9\u4e9b\u8d44\u6e90\u6587\u4ef6\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u6587\u4ef6\u627e\u4e0d\u5230\u7684\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5236\u4f5cPython\u5b89\u88c5\u7a0b\u5e8f\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5de5\u5177\u5982PyInstaller\u3001cx_Freeze\u3001Py2exe\u7b49\u6765\u5b9e\u73b0\uff0c\u8fd9 [&hellip;]","protected":false},"author":3,"featured_media":980072,"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\/980069"}],"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=980069"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980069\/revisions"}],"predecessor-version":[{"id":980074,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/980069\/revisions\/980074"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/980072"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=980069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=980069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=980069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}