{"id":50932,"date":"2026-07-13T12:17:34","date_gmt":"2026-07-13T04:17:34","guid":{"rendered":"https:\/\/www.anzhuoe.com\/anzhuo\/?p=50932"},"modified":"2026-07-13T12:17:34","modified_gmt":"2026-07-13T04:17:34","slug":"jupyter%e7%94%9f%e6%88%90exe%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%b9%e6%b3%95%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.anzhuoe.com\/anzhuo\/50932\/","title":{"rendered":"jupyter\u751f\u6210exe\u6709\u54ea\u4e9b\u65b9\u6cd5\uff1f"},"content":{"rendered":"<p>Jupyter Notebook\u662f\u4e00\u4e2a\u975e\u5e38\u4fbf\u6377\u7684\u7f16\u7a0b\u73af\u5883\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728\u4e00\u4e2aWeb\u9875\u9762\u4ea4\u4e92\u5f0f\u7684\u7f16\u5199\u548c\u6267\u884cPython\u4ee3<a href=\"https:\/\/exe.yimenapp.com\/tool-3375.html\">exe\u63d0\u53d6\u5de5\u5177<\/a>\u7801\u3002\u7136\u800c\uff0cJupyter Notebook\u5e76\u4e0d\u76f4\u63a5\u63d0\u4f9b\u5c06Notebook\u8f6c\u6362\u6210.exe\u53ef\u6267\u884c\u6587\u4ef6\u7684\u529f\u80fd\u3002\u4f46\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5176\u4ed6\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e2a\u9700\u6c42\u3002<\/p>\n<p>\u4e3a\u4e86\u5c06Jupyter Notebook\u751f\u6210\u4e3a\u4e00\u4e2a.exe\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u6211\u4eec\u53ef\u4ee5\u5206\u4e3a\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\u6765\u64cd\u4f5c\uff1a<\/p>\n<p>### \u6b65\u9aa41: \u5bfc\u51faPython (.py) \u6587\u4ef6<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5c06Jupyter Notebook (.ipynb) \u6587\u4ef6\u5bfc\u51fa\u4e3a\u4e00\u4e2a\u7eafPython\u4ee3\u7801 (.py) \u6587\u4ef6\u3002<\/p>\n<p>1. \u6253\u5f00\u4f60\u7684Jupyter Notebook\u3002<\/p>\n<p>2. \u70b9\u51fb\u201cFile\u201d -&gt; \u201cDownload as\u201d -&gt; \u201cPython (.py)\u201d\u3002<\/p>\n<p>\u6b64\u65f6\uff0c\u4f60\u7684 .ipynb \u6587\u4ef6\u5c06\u88ab\u4e0b\u8f7d\u5e76\u4fdd\u5b58\u4e3a\u4e00\u4e2a .py \u6587\u4ef6\u3002<\/p>\n<p>### \u6b65\u9aa42: \u5b89\u88c5 PyInstaller<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u540d\u4e3aPyInstaller\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5PyInstaller\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>pip install pyinstaller<\/p>\n<p>&#8220;`<\/p>\n<p>### \u6b65\u9aa43: \u4f7f\u7528 PyInstaller \u751f\u6210 .exe \u6587\u4ef6<\/p>\n<p>\u73b0\u5728<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/15\/14\/03171000760.jpg\" \/><\/figure>\n<\/p>\n<p>\u6211\u4eec\u5df2\u7ecf\u51c6\u5907\u597d\u5c06Python\u4ee3\u7801\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p><a href=\"https:\/\/www.yimenexe.com\/ruanjian-kaifa-958.html\">labview\u751f\u6210exeicon\u62a5\u9519<\/a>pyinstaller &#8211;onefile your_python_file.py<\/p>\n<p>&#8220;`<\/p>\n<p>\u8bf7\u5c06\u8be5\u547d\u4ee4\u4e2d\u7684\u201cyour_python_file.py\u201d\u66ff\u6362\u4e3a\u4f60\u5728\u6b65\u9aa41\u4e2d\u5bfc\u51fa\u7684.py\u6587\u4ef6\u7684\u771f\u5b9e\u540d\u79f0\u3002<\/p>\n<p>\u8be5\u547d\u4ee4\u4f1a\u5728\u5f53\u524d\u6587\u4ef6\u5939\u751f\u6210\u4e00\u4e2a\u540d\u4e3a\u201cdist\u201d\u7684\u6587\u4ef6\u5939\u3002\u5728\u201cdist\u201d\u6587\u4ef6\u5939\u4e2d\uff0c\u4f60\u5c06\u770b\u5230\u4e00\u4e2a\u4e0e\u4f60\u7684Python\u6587\u4ef6\u540c\u540d\u7684.exe\u6587\u4ef6\u3002\u8fd9\u5c31\u662f\u5c06Jupyter Notebook\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>### \u6ce8\u610f\u4e8b\u9879<\/p>\n<p>1. \u5728\u5c06Jupyter Notebook\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u65f6\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684\u4ee3\u7801\u6ca1\u6709\u4f7f\u7528\u5230Jupyter Notebook\u7279\u6709\u7684\u51fd\u6570\uff0c\u4f8b\u5982`%matplotlib inline`\uff0c\u8fd9\u4e9b\u529f\u80fd\u5728\u7eafPython\u73af\u5883\u4e2d\u4e0d\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>2. \u5982\u679c\u4f60\u7684Jupyter Notebook\u4ee3\u7801\u5bfc\u5165\u4e86\u4e00\u4e9b\u5916\u90e8\u5e93\uff0c\u8bf7\u786e\u4fdd\u5728\u8fd0\u884c\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8ba1\u7b97\u673a\u4e0a\u4e5f\u5b89\u88c5\u4e86\u8fd9\u4e9b\u5e93\uff0c\u5426\u5219\u7a0b\u5e8f\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<p>3. \u5982\u679c\u60a8\u6253\u7b97\u5c06\u53ef\u6267\u884c\u6587\u4ef6\u53d1\u9001\u7ed9\u5176\u4ed6\u4eba\u4f7f\u7528\uff0c\u8bf7\u786e\u4fdd\u4ed6\u4eec\u7684\u8ba1\u7b97\u673a\u4e0a\u4e5f\u5b89\u88c5\u4e86\u4f7f\u7528\u5230\u7684Python\u5e93\u3002<\/p>\n<p>\u603b\u4e4b\uff0c\u5c06Jupyter Notebook\u751f\u6210\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8fc7\u7a0b\u5e76\u4e0d\u590d\u6742\u3002\u8ddf\u968f\u4e0a\u8ff0\u4e09\u4e2a\u6b65\u9aa4\u64cd\u4f5c\uff0c\u4f60\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5c06\u4f60\u7684Jupyter Notebook\u8f6c\u6362\u4e3a\u4e00\u4e2a.exe\u6587\u4ef6\uff0c\u8fd9\u5c06\u65b9\u4fbf\u5728\u4e0d\u4f9d\u8d56Jupyter\u73af\u5883\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u4f60\u7684Python\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Jupyter Notebook\u662f\u4e00\u4e2a\u975e\u5e38\u4fbf\u6377\u7684\u7f16\u7a0b\u73af\u5883\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728\u4e00\u4e2aWeb\u9875\u9762\u4ea4\u4e92\u5f0f\u7684\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u7136\u800c\uff0cJupyter Notebook\u5e76\u4e0d\u76f4\u63a5\u63d0\u4f9b\u5c06Notebook\u8f6c\u6362\u6210.e<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[31509,38766,248,220,27],"topic":[],"class_list":["post-50932","post","type-post","status-publish","format-standard","hentry","category-ruanjiankaifa","tag-pythonexe","tag-qt5exedll","tag-248","tag-220","tag-27"],"_links":{"self":[{"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/posts\/50932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/comments?post=50932"}],"version-history":[{"count":1,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/posts\/50932\/revisions"}],"predecessor-version":[{"id":50945,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/posts\/50932\/revisions\/50945"}],"wp:attachment":[{"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/media?parent=50932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/categories?post=50932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/tags?post=50932"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.anzhuoe.com\/anzhuo\/wp-json\/wp\/v2\/topic?post=50932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}