{"id":750,"date":"2021-03-25T19:10:06","date_gmt":"2021-03-25T11:10:06","guid":{"rendered":"https:\/\/kanghaov.com\/?p=750"},"modified":"2021-03-29T15:11:15","modified_gmt":"2021-03-29T07:11:15","slug":"pyinstaller%e6%89%93%e5%8c%85python%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"https:\/\/nemo.cool\/750.html","title":{"rendered":"Pyinstaller\u6253\u5305Python\u9879\u76ee"},"content":{"rendered":"<h3>Python\u9879\u76ee\u6253\u5305\u6d41\u7a0b<\/h3>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/my.oschina.net\/goopand\/blog\/392195\">Linux\u4e0b\u4f7f\u7528PyInstaller\u6253\u5305Python\u7a0b\u5e8f<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/101963762\">Python\u5229\u7528PyInstaller\u6253\u5305<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/python.digitser.net\/pyinstaller\/3.6\/zh-CN\/index.html\">PyInstaller \u624b\u518c<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.luzy.top\/posts\/1795373516\/\">python\u5e94\u7528\u6253\u5305\u7b14\u8bb0<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/blog.luzy.top\/posts\/3136266189\/\">\u8c08\u8c08 Pyinstaller \u7684\u7f16\u8bd1\u548c\u53cd\u7f16\u8bd1<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/realpython.com\/pyinstaller-python\/\">Using PyInstaller to Easily Distribute Python Applications<\/a><\/p>\n<pre><code class=\"line-numbers\">pip install pyinstaller\npyinstaller -F xx.py\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/kanghaov-img-1256185664.file.myqcloud.com\/2021\/03\/24\/a337a73da2a04.jpg\" alt=\"a7ppi-ujv4p.jpg\" \/><\/p>\n<h4>Pyinstaller\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879<\/h4>\n<ol>\n<li>\u907f\u514d\u5728<code>\u5165\u53e3\u6587\u4ef6<\/code>\u4e2d\u4f7f\u7528<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/realpython.com\/absolute-vs-relative-python-imports\/#relative-imports\">\u663e\u5f0f\u7684\u76f8\u5bf9\u5bfc\u5165<\/a>\uff0c\n<p>\u76f8\u5bf9\u5bfc\u5165\u7684\u8bed\u6cd5\u53d6\u51b3\u4e8e\u5f53\u524d\u4f4d\u7f6e\u4ee5\u53ca\u8981\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u5305\u6216\u5bf9\u8c61\u7684\u4f4d\u7f6e\u3002\u4ee5\u4e0b\u662f\u76f8\u5bf9\u5bfc\u5165\u7684\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python line-numbers\">from .some_module import some_class\nfrom ..some_package import some_function\nfrom . import some_class\n<\/code><\/pre>\n<p>\u5355\u70b9\u8868\u793a\u6240\u5f15\u7528\u7684\u6a21\u5757\u6216\u8f6f\u4ef6\u5305\u4e0e\u5f53\u524d\u4f4d\u7f6e\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e2d\u3002\u4e24\u4e2a\u70b9\u8868\u793a\u5b83\u4f4d\u4e8e\u5f53\u524d\u4f4d\u7f6e\u7684\u7236\u76ee\u5f55\uff08\u5373\u4e0a\u9762\u7684\u76ee\u5f55\uff09\u4e2d\u3002\u4e09\u4e2a\u70b9\u8868\u793a\u8be5\u6587\u4ef6\u4f4d\u4e8e\u7956\u7236\u6bcd\u76ee\u5f55\u4e2d\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/li>\n<li>\n<p>Pyinstaller\u8fd0\u884c\u65f6\u4f1a\u4ea7\u751f\u4e09\u4e2a\u6587\u4ef6\u5939\uff1a<\/p>\n<\/li>\n<\/ol>\n<ul>\n<li>\n<p>A <code>*.spec<\/code> file<\/p>\n<\/li>\n<li>\n<p>A <code>build\/<\/code> folder<\/p>\n<\/li>\n<li>\n<p>A <code>dist\/<\/code> folder<\/p>\n<ol>\n<li><strong>Spec File<\/strong>\n<p>\u8be5\u6587\u4ef6\u5c06\u7531<code>pyinstaller<\/code>\u547d\u4ee4\u81ea\u52a8\u521b\u5efa\u3002\u53ef\u4ee5\u4fee\u6539\u6b64\u6587\u4ef6\u5e76\u5728\u4ee5\u540e\u91cd\u65b0\u4f7f\u7528\u5b83\u6765\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u901a\u8fc7\u63d0\u4f9b\u6b64spec\u6587\u4ef6\u800c\u4e0d\u662f<code>pyinstaller<\/code>\u547d\u4ee4\u7684\u5165\u53e3\u70b9\u811a\u672c\uff0c\u53ef\u4ee5\u4f7f\u4ee5\u540e\u7684\u6784\u5efa\u66f4\u5feb\u4e00\u4e9b\u3002<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/pyinstaller.readthedocs.io\/en\/stable\/spec-files.html#using-spec-files\">\u5b98\u7f51\u7528\u4f8b<\/a>\uff0c\u4f46\u662f\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u9879\u76ee\uff0c\u9664\u975e\u60a8\u60f3\u5927\u91cf\u81ea\u5b9a\u4e49\u9879\u76ee\u7684\u6784\u5efa\u65b9\u5f0f\uff0c\u5426\u5219\u65e0\u9700\u62c5\u5fc3\u8fd9\u4e9b\u7ec6\u8282\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Build Folder<\/strong><\/p>\n<p>\u5728\u8be5<code>build\/<\/code>\u6587\u4ef6\u5939\u4e2d\uff0cPyInstaller\u4f1a\u5c06\u5927\u591a\u6570\u5143\u6570\u636e\u548c\u5185\u90e8\u7c3f\u8bb0\u653e\u5165\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u4ee5\u6784\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u5185\u5bb9\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<pre><code class=\"language-shell line-numbers\">build\/\n|\n\u2514\u2500\u2500 cli\/\n    \u251c\u2500\u2500 Analysis-00.toc\n    \u251c\u2500\u2500 base_library.zip\n    \u251c\u2500\u2500 COLLECT-00.toc\n    \u251c\u2500\u2500 EXE-00.toc\n    \u251c\u2500\u2500 PKG-00.pkg\n    \u251c\u2500\u2500 PKG-00.toc\n    \u251c\u2500\u2500 PYZ-00.pyz\n    \u251c\u2500\u2500 PYZ-00.toc\n    \u251c\u2500\u2500 warn-cli.txt\n    \u2514\u2500\u2500 xref-cli.html\n<\/code><\/pre>\n<p>build\u6587\u4ef6\u5939\u5bf9\u4e8e\u8c03\u8bd5\u5f88\u6709\u7528\uff0c\u4f46\u662f\u9664\u975e\u9047\u5230\u95ee\u9898\uff0c\u5426\u5219\u5728\u5f88\u5927\u7a0b\u5ea6\u4e0a\u53ef\u4ee5\u5ffd\u7565\u6b64\u6587\u4ef6\u5939\u3002<\/p>\n<\/li>\n<li>\n<p><strong>Dist Folder<\/strong><\/p>\n<p>\u6784\u5efa\u540e\uff0c\u5c06\u5f97\u5230\u4e00\u4e2a<code>dist\/<\/code>\u7c7b\u4f3c\u4e8e\u4ee5\u4e0b\u5185\u5bb9\u7684\u6587\u4ef6\u5939\uff1a<\/p>\n<pre><code class=\"line-numbers\">dist\/\n|\n\u2514\u2500\u2500 cli\/\n    \u2514\u2500\u2500 cli\n<\/code><\/pre>\n<p>\u8be5<code>dist\/<\/code>\u6587\u4ef6\u5939\u5305\u542b\u8981\u4ea4\u4ed8\u7ed9\u7528\u6237\u7684\u6700\u7ec8\u5de5\u4ef6\u3002\u5728\u8be5<code>dist\/<\/code>\u6587\u4ef6\u5939\u5185\uff0c\u6709\u4e00\u4e2a\u4ee5\u5165\u53e3\u70b9\u547d\u540d\u7684\u6587\u4ef6\u5939\u3002\u56e0\u6b64\uff0c\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u60a8\u5c06\u62e5\u6709\u4e00\u4e2a<code>dist\/cli<\/code>\u6587\u4ef6\u5939\uff0c\u5176\u4e2d\u5305\u542b\u6211\u4eec\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u4f9d\u8d56\u5173\u7cfb\u548c\u53ef\u6267\u884c\u6587\u4ef6\u3002\u8981\u8fd0\u884c\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4e3a\uff0c<code>dist\/cli\/cli<\/code>\u6216\u8005<code>dist\/cli\/cli.exe<\/code>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fWindows\u3002<\/p>\n<p>\u8fd8\u53ef\u4ee5\u627e\u5230\u5927\u91cf\u7684\u6587\u4ef6\u6269\u5c55\u540d\u4e3a<code>.so<\/code>\uff0c<code>.pyd<\/code>\u4ee5\u53ca<code>.dll<\/code>\u6839\u636e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u8fd9\u4e9b\u662f\u5171\u4eab\u5e93\uff0c\u8868\u793aPyInstaller\u521b\u5efa\u548c\u6536\u96c6\u7684\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<pre><code class=\"line-numbers\">Note: You can add *.spec, build\/, and dist\/ to your .gitignore file to keep git status clean if you\u2019re using git for version control. The default GitHub gitignore file for Python projects already does this for you.\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<ol start=\"3\">\n<li>Pyinstaller\u81ea\u5b9a\u4e49\u53c2\u6570<\/li>\n<\/ol>\n<ul>\n<li><code>--name<\/code>\n<p>\u66f4\u6539\u53ef\u6267\u884c\u6587\u4ef6\u7684\u540d\u79f0<\/p>\n<p>&#8220;`<br \/>\n pyinstaller cli.py &#8211;name realpython<br \/>\n &#8220;`\n<\/p>\n<\/li>\n<li>\n<p><code>--onefile<\/code><\/p>\n<p>\u5c06\u6574\u4e2a\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u5230\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\u4e2d<\/p>\n<p>&#8220;`<br \/>\n pyinstaller cli.py &#8211;onefile<br \/>\n &#8220;`<\/p>\n<p>\u4f7f\u7528\u4e0a\u9762\u7684\u547d\u4ee4\uff0c<code>dist\/<\/code>\u6587\u4ef6\u5939\u5c06\u53ea\u5305\u542b\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u800c\u4e0d\u662f\u6240\u6709\u4f9d\u8d56\u5173\u7cfb\u90fd\u4f4d\u4e8e\u5355\u72ec\u6587\u4ef6\u4e2d\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<\/li>\n<li>\n<p><code>--hidden-import<\/code><\/p>\n<p>\u5217\u51faPyInstaller\u65e0\u6cd5\u81ea\u52a8\u68c0\u6d4b\u5230\u7684\u591a\u4e2a\u9876\u7ea7\u5bfc\u5165<\/p>\n<p>\u8fd9\u662f\u4f7f\u7528<code>import<\/code>\u5185\u90e8\u51fd\u6570\u548c\u6765\u89e3\u51b3\u4ee3\u7801\u7684\u4e00\u79cd\u65b9\u6cd5<code>__import__()<\/code>\u3002\u60a8\u4e5f\u53ef\u4ee5\u5728\u540c\u4e00\u547d\u4ee4\u4e2d\u591a\u6b21\u4f7f\u7528<code>--hidden-import<\/code>\u3002<\/p>\n<p>\u6b64\u9009\u9879\u9700\u8981\u60a8\u8981\u5305\u542b\u5728\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u7684\u8f6f\u4ef6\u5305\u7684\u540d\u79f0\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u7684\u9879\u76ee\u5c06<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/realpython.com\/python-requests\/\">requests<\/a>\u5e93\u5bfc\u5165\u5230\u51fd\u6570\u5185\u90e8\uff0c\u5219PyInstaller\u4e0d\u4f1a\u81ea\u52a8\u5305\u542b<code>requests<\/code>\u5728\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f3a\u5236<code>requests<\/code>\u5c06\u5176\u5305\u62ec\u5728\u5185\uff1a<\/p>\n<p>&#8220;`<br \/>\n pyinstaller cli.py &#8211;hiddenimport=requests<br \/>\n &#8220;`<\/p>\n<p>\u60a8\u53ef\u4ee5\u5728\u6784\u5efa\u547d\u4ee4\u4e2d\u591a\u6b21\u6307\u5b9a\u6b64\u9009\u9879\uff0c\u6bcf\u6b21\u9690\u85cf\u5bfc\u5165\u4e00\u6b21\u3002<\/p>\n<\/li>\n<li>\n<p><code>--add-data<\/code> \u548c <code>--add-binary<\/code><\/p>\n<p>\u6307\u793aPyInstaller\u5c06\u5176\u4ed6\u6570\u636e\u6216\u4e8c\u8fdb\u5236\u6587\u4ef6\u63d2\u5165\u5230\u60a8\u7684\u7248\u672c\u4e2d\u3002<\/p>\n<p>\u5f53\u60a8\u5e0c\u671b\u6346\u7ed1\u914d\u7f6e\u6587\u4ef6\uff0c\u793a\u4f8b\u6216\u5176\u4ed6\u975e\u4ee3\u7801\u6570\u636e\u65f6\uff0c\u6b64\u529f\u80fd\u5f88\u6709\u7528\u3002<\/p>\n<\/li>\n<li>\n<p><code>--exclude-module<\/code><\/p>\n<p>\u4ece\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u6392\u9664\u67d0\u4e9b\u6a21\u5757<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4f7f\u7528<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/realpython.com\/pytest-python-testing\/\">pytest<\/a>\uff0c\u5219\u53ef\u80fd\u8981\u4ece\u53ef\u6267\u884c\u6587\u4ef6\u4e2d\u6392\u9664\u5b83\uff1a<\/p>\n<p>&#8220;`<br \/>\n  pyinstaller cli.py &#8211;exclude-module=pytest<br \/>\n &#8220;`\n<\/p>\n<\/li>\n<li>\n<p><code>-w<\/code><\/p>\n<p>\u907f\u514d\u81ea\u52a8\u6253\u5f00\u63a7\u5236\u53f0\u7a97\u53e3\u8fdb\u884c<code>stdout<\/code>\u65e5\u5fd7\u8bb0\u5f55\u3002<\/p>\n<p>\u4ec5\u5728\u6784\u5efa\u652f\u6301GUI\u7684\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u6b64\u529f\u80fd\u624d\u6709\u7528\u3002\u901a\u8fc7\u5141\u8bb8\u7528\u6237\u4ece\u4e0d\u67e5\u770b\u7ec8\u7aef\uff0c\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u60a8\u9690\u85cf\u5b9e\u73b0\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<p>\u7c7b\u4f3c\u4e8e\u8be5<code>--onefile<\/code>\u9009\u9879\uff0c<code>-w<\/code>\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\uff1a<\/p>\n<p>&#8220;`<br \/>\n pyinstaller cli.py -w<br \/>\n &#8220;`\n<\/p>\n<\/li>\n<li>\n<p><code>--log-level=DEBUG<\/code><\/p>\n<p>\u91cd\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u5e76\u67e5\u770b\u8f93\u51fa<\/p>\n<p>\u5f53\u4f7f\u7528\u6765\u589e\u52a0\u8be6\u7ec6\u7a0b\u5ea6\u65f6\uff0cPyInstaller\u5c06\u521b\u5efa<em>\u5927\u91cf<\/em>\u8f93\u51fa<code>--log-level=DEBUG<\/code>\u3002\u5c06\u8f93\u51fa\u4fdd\u5b58\u5230\u4ee5\u540e\u53ef\u4ee5\u53c2\u8003\u7684\u6587\u4ef6\u4e2d\u5f88\u6709\u7528\uff0c\u800c\u4e0d\u662f\u5728\u7ec8\u7aef\u4e2d\u6eda\u52a8\u3002\u4e3a\u6b64\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5916\u58f3\u7a0b\u5e8f\u7684<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/en.wikipedia.org\/wiki\/Redirection_(computing)\">\u91cd\u5b9a\u5411\u529f\u80fd<\/a>\u3002\u8fd9\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<p>&#8220;`shell<br \/>\n $ pyinstaller &#8211;log-level=DEBUG cli.py 2&gt; build.txt<br \/>\n &#8220;`<\/p>\n<p>\u4f7f\u7528\u7684\u6807\u51c6\u91cd\u5b9a\u5411<code>&gt;<\/code>\u662f\u4e0d\u591f\u7684\u3002PyInstaller\u6253\u5370\u5230<code>stderr<\/code>\u6d41\uff0c<em>\u800c\u4e0d\u662f<\/em> <code>stdout<\/code>\u3002\u8fd9\u610f\u5473\u7740\u60a8\u9700\u8981\u5c06<code>stderr<\/code>\u6d41\u91cd\u5b9a\u5411\u5230\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0a\u4e00\u4e2a<code>2<\/code>\u547d\u4ee4\u4e2d\u7684as\u6765\u5b8c\u6210\u3002<\/p>\n<\/li>\n<\/ul>\n<ol start=\"4\">\n<li>\n<p>Pyinstaller\u52a0\u5bc6\u6253\u5305<\/p>\n<p>\u52a0\u5bc6\u8fc7\u7a0b\u9700\u8981\u4f9d\u8d56<code>pycrypto<\/code><\/p>\n<pre><code class=\"line-numbers\">pip install pycrypto\n<\/code><\/pre>\n<p>\u53ea\u8981\u5728\u6253\u5305\u65f6\u52a0\u4e2a<code>key<\/code>\u53c2\u6570\u5c31\u80fd\u52a0\u5bc6:<\/p>\n<pre><code class=\"language-python line-numbers\">pyinstaller.exe -F --key 123456 xxx.py\n<\/code><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Python\u9879\u76ee\u6253\u5305\u6d41\u7a0b Linux\u4e0b\u4f7f\u7528PyInstaller\u6253\u5305Python\u7a0b\u5e8f Python\u5229\u7528PyInstaller\u6253\u5305 PyInstaller \u624b\u518c python\u5e94\u7528\u6253\u5305\u7b14\u8bb0 \u8c08\u8c08 Pyinstaller \u7684\u7f16\u8bd1\u548c\u53cd\u7f16\u8bd1 Using PyInstaller to Easily Distribute Python Applications pip install pyinstaller pyinstaller -F xx.py Pyinstaller\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879 \u907f\u514d\u5728\u5165\u53e3\u6587\u4ef6\u4e2d\u4f7f\u7528\u663e\u5f0f\u7684\u76f8\u5bf9\u5bfc\u5165\uff0c \u76f8\u5bf9\u5bfc\u5165\u7684\u8bed\u6cd5\u53d6\u51b3\u4e8e\u5f53\u524d\u4f4d\u7f6e\u4ee5\u53ca\u8981\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u5305\u6216\u5bf9\u8c61\u7684\u4f4d\u7f6e\u3002\u4ee5\u4e0b\u662f\u76f8\u5bf9\u5bfc\u5165\u7684\u4e00\u4e9b\u793a\u4f8b\uff1a from .some_module import some_class from ..some_package import some_function from . import some_class \u5355\u70b9\u8868\u793a\u6240\u5f15\u7528\u7684\u6a21\u5757\u6216\u8f6f\u4ef6\u5305\u4e0e\u5f53\u524d\u4f4d\u7f6e\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e2d\u3002\u4e24\u4e2a\u70b9\u8868\u793a\u5b83\u4f4d\u4e8e\u5f53\u524d\u4f4d\u7f6e\u7684\u7236\u76ee\u5f55\uff08\u5373\u4e0a\u9762\u7684\u76ee\u5f55\uff09\u4e2d\u3002\u4e09\u4e2a\u70b9\u8868\u793a\u8be5\u6587\u4ef6\u4f4d\u4e8e\u7956\u7236\u6bcd\u76ee\u5f55\u4e2d\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002 Pyinstaller\u8fd0\u884c\u65f6\u4f1a\u4ea7\u751f\u4e09\u4e2a\u6587\u4ef6\u5939\uff1a A *.spec file A build\/ folder A dist\/ folder Spec File \u8be5\u6587\u4ef6\u5c06\u7531pyinstaller\u547d\u4ee4\u81ea\u52a8\u521b\u5efa\u3002\u53ef\u4ee5\u4fee\u6539\u6b64\u6587\u4ef6\u5e76\u5728\u4ee5\u540e\u91cd\u65b0\u4f7f\u7528\u5b83\u6765\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u901a\u8fc7\u63d0\u4f9b\u6b64spec\u6587\u4ef6\u800c\u4e0d\u662fpyinstaller\u547d\u4ee4\u7684\u5165\u53e3\u70b9\u811a\u672c\uff0c\u53ef\u4ee5\u4f7f\u4ee5\u540e\u7684\u6784\u5efa\u66f4\u5feb\u4e00\u4e9b\u3002\u5b98\u7f51\u7528\u4f8b\uff0c\u4f46\u662f\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u9879\u76ee\uff0c\u9664\u975e\u60a8\u60f3\u5927\u91cf\u81ea\u5b9a\u4e49\u9879\u76ee\u7684\u6784\u5efa\u65b9\u5f0f\uff0c\u5426\u5219\u65e0\u9700\u62c5\u5fc3\u8fd9\u4e9b\u7ec6\u8282\u3002 Build Folder \u5728\u8be5build\/\u6587\u4ef6\u5939\u4e2d\uff0cPyInstaller\u4f1a\u5c06\u5927\u591a\u6570\u5143\u6570\u636e\u548c\u5185\u90e8\u7c3f\u8bb0\u653e\u5165\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u4ee5\u6784\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u5185\u5bb9\u5982\u4e0b\u6240\u793a\uff1a build\/ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":751,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,2],"tags":[94],"class_list":["post-750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev","category-py","tag-pyinstaller"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nemo.cool\/750.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo\" \/>\n<meta property=\"og:description\" content=\"Python\u9879\u76ee\u6253\u5305\u6d41\u7a0b Linux\u4e0b\u4f7f\u7528PyInstaller\u6253\u5305Python\u7a0b\u5e8f Python\u5229\u7528PyInstaller\u6253\u5305 PyInstaller \u624b\u518c python\u5e94\u7528\u6253\u5305\u7b14\u8bb0 \u8c08\u8c08 Pyinstaller \u7684\u7f16\u8bd1\u548c\u53cd\u7f16\u8bd1 Using PyInstaller to Easily Distribute Python Applications pip install pyinstaller pyinstaller -F xx.py Pyinstaller\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879 \u907f\u514d\u5728\u5165\u53e3\u6587\u4ef6\u4e2d\u4f7f\u7528\u663e\u5f0f\u7684\u76f8\u5bf9\u5bfc\u5165\uff0c \u76f8\u5bf9\u5bfc\u5165\u7684\u8bed\u6cd5\u53d6\u51b3\u4e8e\u5f53\u524d\u4f4d\u7f6e\u4ee5\u53ca\u8981\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u5305\u6216\u5bf9\u8c61\u7684\u4f4d\u7f6e\u3002\u4ee5\u4e0b\u662f\u76f8\u5bf9\u5bfc\u5165\u7684\u4e00\u4e9b\u793a\u4f8b\uff1a from .some_module import some_class from ..some_package import some_function from . import some_class \u5355\u70b9\u8868\u793a\u6240\u5f15\u7528\u7684\u6a21\u5757\u6216\u8f6f\u4ef6\u5305\u4e0e\u5f53\u524d\u4f4d\u7f6e\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e2d\u3002\u4e24\u4e2a\u70b9\u8868\u793a\u5b83\u4f4d\u4e8e\u5f53\u524d\u4f4d\u7f6e\u7684\u7236\u76ee\u5f55\uff08\u5373\u4e0a\u9762\u7684\u76ee\u5f55\uff09\u4e2d\u3002\u4e09\u4e2a\u70b9\u8868\u793a\u8be5\u6587\u4ef6\u4f4d\u4e8e\u7956\u7236\u6bcd\u76ee\u5f55\u4e2d\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002 Pyinstaller\u8fd0\u884c\u65f6\u4f1a\u4ea7\u751f\u4e09\u4e2a\u6587\u4ef6\u5939\uff1a A *.spec file A build\/ folder A dist\/ folder Spec File \u8be5\u6587\u4ef6\u5c06\u7531pyinstaller\u547d\u4ee4\u81ea\u52a8\u521b\u5efa\u3002\u53ef\u4ee5\u4fee\u6539\u6b64\u6587\u4ef6\u5e76\u5728\u4ee5\u540e\u91cd\u65b0\u4f7f\u7528\u5b83\u6765\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u901a\u8fc7\u63d0\u4f9b\u6b64spec\u6587\u4ef6\u800c\u4e0d\u662fpyinstaller\u547d\u4ee4\u7684\u5165\u53e3\u70b9\u811a\u672c\uff0c\u53ef\u4ee5\u4f7f\u4ee5\u540e\u7684\u6784\u5efa\u66f4\u5feb\u4e00\u4e9b\u3002\u5b98\u7f51\u7528\u4f8b\uff0c\u4f46\u662f\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u9879\u76ee\uff0c\u9664\u975e\u60a8\u60f3\u5927\u91cf\u81ea\u5b9a\u4e49\u9879\u76ee\u7684\u6784\u5efa\u65b9\u5f0f\uff0c\u5426\u5219\u65e0\u9700\u62c5\u5fc3\u8fd9\u4e9b\u7ec6\u8282\u3002 Build Folder \u5728\u8be5build\/\u6587\u4ef6\u5939\u4e2d\uff0cPyInstaller\u4f1a\u5c06\u5927\u591a\u6570\u5143\u6570\u636e\u548c\u5185\u90e8\u7c3f\u8bb0\u653e\u5165\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u4ee5\u6784\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u5185\u5bb9\u5982\u4e0b\u6240\u793a\uff1a build\/ [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nemo.cool\/750.html\" \/>\n<meta property=\"og:site_name\" content=\"Nemo\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-25T11:10:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-29T07:11:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Nemo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nemo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html\"},\"author\":{\"name\":\"Nemo\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"headline\":\"Pyinstaller\u6253\u5305Python\u9879\u76ee\",\"datePublished\":\"2021-03-25T11:10:06+00:00\",\"dateModified\":\"2021-03-29T07:11:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html\"},\"wordCount\":80,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/pyinstaller.jpg\",\"keywords\":[\"Pyinstaller\"],\"articleSection\":[\"Dev\",\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/750.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html\",\"url\":\"https:\\\/\\\/nemo.cool\\\/750.html\",\"name\":\"Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/pyinstaller.jpg\",\"datePublished\":\"2021-03-25T11:10:06+00:00\",\"dateModified\":\"2021-03-29T07:11:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/nemo.cool\\\/750.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#primaryimage\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/pyinstaller.jpg\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/pyinstaller.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/750.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\\\/\\\/nemo.cool\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pyinstaller\u6253\u5305Python\u9879\u76ee\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/#website\",\"url\":\"https:\\\/\\\/nemo.cool\\\/\",\"name\":\"Nemo\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/nemo.cool\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/nemo.cool\\\/#\\\/schema\\\/person\\\/698f803ee811e2b140a90f5d5de913d2\",\"name\":\"Nemo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"url\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\",\"caption\":\"Nemo\"},\"logo\":{\"@id\":\"https:\\\/\\\/nemo.cool\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg\"},\"sameAs\":[\"https:\\\/\\\/nemo.cool\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nemo.cool\/750.html","og_locale":"en_US","og_type":"article","og_title":"Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo","og_description":"Python\u9879\u76ee\u6253\u5305\u6d41\u7a0b Linux\u4e0b\u4f7f\u7528PyInstaller\u6253\u5305Python\u7a0b\u5e8f Python\u5229\u7528PyInstaller\u6253\u5305 PyInstaller \u624b\u518c python\u5e94\u7528\u6253\u5305\u7b14\u8bb0 \u8c08\u8c08 Pyinstaller \u7684\u7f16\u8bd1\u548c\u53cd\u7f16\u8bd1 Using PyInstaller to Easily Distribute Python Applications pip install pyinstaller pyinstaller -F xx.py Pyinstaller\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879 \u907f\u514d\u5728\u5165\u53e3\u6587\u4ef6\u4e2d\u4f7f\u7528\u663e\u5f0f\u7684\u76f8\u5bf9\u5bfc\u5165\uff0c \u76f8\u5bf9\u5bfc\u5165\u7684\u8bed\u6cd5\u53d6\u51b3\u4e8e\u5f53\u524d\u4f4d\u7f6e\u4ee5\u53ca\u8981\u5bfc\u5165\u7684\u6a21\u5757\uff0c\u5305\u6216\u5bf9\u8c61\u7684\u4f4d\u7f6e\u3002\u4ee5\u4e0b\u662f\u76f8\u5bf9\u5bfc\u5165\u7684\u4e00\u4e9b\u793a\u4f8b\uff1a from .some_module import some_class from ..some_package import some_function from . import some_class \u5355\u70b9\u8868\u793a\u6240\u5f15\u7528\u7684\u6a21\u5757\u6216\u8f6f\u4ef6\u5305\u4e0e\u5f53\u524d\u4f4d\u7f6e\u4f4d\u4e8e\u540c\u4e00\u76ee\u5f55\u4e2d\u3002\u4e24\u4e2a\u70b9\u8868\u793a\u5b83\u4f4d\u4e8e\u5f53\u524d\u4f4d\u7f6e\u7684\u7236\u76ee\u5f55\uff08\u5373\u4e0a\u9762\u7684\u76ee\u5f55\uff09\u4e2d\u3002\u4e09\u4e2a\u70b9\u8868\u793a\u8be5\u6587\u4ef6\u4f4d\u4e8e\u7956\u7236\u6bcd\u76ee\u5f55\u4e2d\uff0c\u4f9d\u6b64\u7c7b\u63a8\u3002 Pyinstaller\u8fd0\u884c\u65f6\u4f1a\u4ea7\u751f\u4e09\u4e2a\u6587\u4ef6\u5939\uff1a A *.spec file A build\/ folder A dist\/ folder Spec File \u8be5\u6587\u4ef6\u5c06\u7531pyinstaller\u547d\u4ee4\u81ea\u52a8\u521b\u5efa\u3002\u53ef\u4ee5\u4fee\u6539\u6b64\u6587\u4ef6\u5e76\u5728\u4ee5\u540e\u91cd\u65b0\u4f7f\u7528\u5b83\u6765\u521b\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u901a\u8fc7\u63d0\u4f9b\u6b64spec\u6587\u4ef6\u800c\u4e0d\u662fpyinstaller\u547d\u4ee4\u7684\u5165\u53e3\u70b9\u811a\u672c\uff0c\u53ef\u4ee5\u4f7f\u4ee5\u540e\u7684\u6784\u5efa\u66f4\u5feb\u4e00\u4e9b\u3002\u5b98\u7f51\u7528\u4f8b\uff0c\u4f46\u662f\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u9879\u76ee\uff0c\u9664\u975e\u60a8\u60f3\u5927\u91cf\u81ea\u5b9a\u4e49\u9879\u76ee\u7684\u6784\u5efa\u65b9\u5f0f\uff0c\u5426\u5219\u65e0\u9700\u62c5\u5fc3\u8fd9\u4e9b\u7ec6\u8282\u3002 Build Folder \u5728\u8be5build\/\u6587\u4ef6\u5939\u4e2d\uff0cPyInstaller\u4f1a\u5c06\u5927\u591a\u6570\u5143\u6570\u636e\u548c\u5185\u90e8\u7c3f\u8bb0\u653e\u5165\u8be5\u6587\u4ef6\u5939\u4e2d\uff0c\u4ee5\u6784\u5efa\u53ef\u6267\u884c\u6587\u4ef6\u3002\u9ed8\u8ba4\u5185\u5bb9\u5982\u4e0b\u6240\u793a\uff1a build\/ [&hellip;]","og_url":"https:\/\/nemo.cool\/750.html","og_site_name":"Nemo","article_published_time":"2021-03-25T11:10:06+00:00","article_modified_time":"2021-03-29T07:11:15+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg","type":"image\/jpeg"}],"author":"Nemo","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Nemo","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nemo.cool\/750.html#article","isPartOf":{"@id":"https:\/\/nemo.cool\/750.html"},"author":{"name":"Nemo","@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"headline":"Pyinstaller\u6253\u5305Python\u9879\u76ee","datePublished":"2021-03-25T11:10:06+00:00","dateModified":"2021-03-29T07:11:15+00:00","mainEntityOfPage":{"@id":"https:\/\/nemo.cool\/750.html"},"wordCount":80,"commentCount":0,"publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"image":{"@id":"https:\/\/nemo.cool\/750.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg","keywords":["Pyinstaller"],"articleSection":["Dev","Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nemo.cool\/750.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nemo.cool\/750.html","url":"https:\/\/nemo.cool\/750.html","name":"Pyinstaller\u6253\u5305Python\u9879\u76ee - Nemo","isPartOf":{"@id":"https:\/\/nemo.cool\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nemo.cool\/750.html#primaryimage"},"image":{"@id":"https:\/\/nemo.cool\/750.html#primaryimage"},"thumbnailUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg","datePublished":"2021-03-25T11:10:06+00:00","dateModified":"2021-03-29T07:11:15+00:00","breadcrumb":{"@id":"https:\/\/nemo.cool\/750.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nemo.cool\/750.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/750.html#primaryimage","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2021\/03\/pyinstaller.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/nemo.cool\/750.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/nemo.cool\/"},{"@type":"ListItem","position":2,"name":"Pyinstaller\u6253\u5305Python\u9879\u76ee"}]},{"@type":"WebSite","@id":"https:\/\/nemo.cool\/#website","url":"https:\/\/nemo.cool\/","name":"Nemo","description":"","publisher":{"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nemo.cool\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/nemo.cool\/#\/schema\/person\/698f803ee811e2b140a90f5d5de913d2","name":"Nemo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","url":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","contentUrl":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg","caption":"Nemo"},"logo":{"@id":"https:\/\/nemo.cool\/wp-content\/uploads\/2024\/01\/Big_Hero_6_Anime_HD_desktop_wallpaper_01_1366x768-e1706020097529-96x96.jpg"},"sameAs":["https:\/\/nemo.cool"]}]}},"_links":{"self":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/750","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/comments?post=750"}],"version-history":[{"count":0,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/posts\/750\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media\/751"}],"wp:attachment":[{"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/media?parent=750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/categories?post=750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nemo.cool\/wp-json\/wp\/v2\/tags?post=750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}