{"id":205427,"date":"2025-05-29T14:57:00","date_gmt":"2025-05-29T06:57:00","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205427\/"},"modified":"2025-05-29T14:57:00","modified_gmt":"2025-05-29T06:57:00","slug":"%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bd%bf%e7%94%a8-pyinstaller-%e7%94%9f%e6%88%90%e5%8f%af%e6%89%a7%e8%a1%8c%e6%96%87%e4%bb%b6%e6%97%b6%e4%bc%9a%e6%8f%90%e7%a4%bano-module-named-pyinstaller","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205427\/","title":{"rendered":"\u4e3a\u4ec0\u4e48\u4f7f\u7528 PyInstaller \u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\u4f1a\u63d0\u793a\u201cNo module named \\&#8217;PyInstaller\\&#8217;\u201d\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u4e3a\u4ec0\u4e48\u4f7f\u7528 PyInstaller \u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\u4f1a\u63d0\u793a\u201cNo module named \\&#8217;PyInstaller\\&#8217;\u201d\uff1f<\/h1>\n<p>\u7f16\u7a0b\u5e76\u4e0d\u662f\u4e00\u4e2a\u673a\u68b0\u6027\u7684\u5de5\u4f5c\uff0c\u800c\u662f\u9700\u8981\u6709\u601d\u8003\uff0c\u6709\u521b\u65b0\u7684\u5de5\u4f5c\uff0c\u8bed\u6cd5\u662f\u56fa\u5b9a\u7684\uff0c\u4f46\u89e3\u51b3\u95ee\u9898\u7684\u601d\u8def\u5219\u662f\u4f9d\u9760\u4eba\u7684\u601d\u7ef4\uff0c\u8fd9\u5c31\u9700\u8981\u6211\u4eec\u575a\u6301\u5b66\u4e60\u548c\u66f4\u65b0\u81ea\u5df1\u7684\u77e5\u8bc6\u3002\u4eca\u5929\u5c31\u6574\u7406\u5206\u4eab\u300a\u4e3a\u4ec0\u4e48\u4f7f\u7528 PyInstaller \u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\u4f1a\u63d0\u793a\u201cNo module named \\&#8217;PyInstaller\\&#8217;\u201d\uff1f\u300b\uff0c\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\uff0c\u5982\u679c\u4f60\u5bf9\u6587\u7ae0\u65b9\u9762\u7684\u77e5\u8bc6\u70b9\u611f\u5174\u8da3\uff0c\u5c31\u4e0d\u8981\u9519\u8fc7\uff0c\u5728\u8fd9\u53ef\u4ee5\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5f00\u53d1\u80fd\u529b\u7684\u63d0\u5347\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241201\/1733049037674c3acd512a4.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>pyinstaller \u65e0\u6cd5\u5b89\u88c5\uff1a\u9519\u8bef\u63d0\u793a\u201cno module named &#8216;pyinstaller&#8217;\u201d<\/strong><\/p>\n<p>\u5728\u4f7f\u7528 pyinstaller \u4e3a python \u811a\u672c\u751f\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u65f6\uff0c\u9047\u5230\u62a5\u9519\u201cno module named &#8216;pyinstaller&#8217;\u201d\uff0c\u63d0\u793a\u627e\u4e0d\u5230 pyinstaller \u6a21\u5757\u3002<\/p>\n<p><strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<p>\u68c0\u67e5\u5b89\u88c5\u547d\u4ee4\u662f\u5426\u6b63\u786e\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5b89\u88c5 pyinstaller \u7684\u547d\u4ee4\u4e3a pip install pyinstaller\u3002\u5982\u679c\u5b89\u88c5\u65f6\u4f7f\u7528\u4e86\u5176\u4ed6\u547d\u4ee4\uff0c\u8bf7\u66f4\u6362\u4e3a\u9ed8\u8ba4\u547d\u4ee4\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre>pip install pyinstaller<\/pre>\n<p>\u7406\u8bba\u8981\u638c\u63e1\uff0c\u5b9e\u64cd\u4e0d\u80fd\u843d\uff01\u4ee5\u4e0a\u5173\u4e8e\u300a\u4e3a\u4ec0\u4e48\u4f7f\u7528 PyInstaller \u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u65f6\u4f1a\u63d0\u793a\u201cNo module named \\&#8217;PyInstaller\\&#8217;\u201d\uff1f\u300b\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5927\u5bb6\u90fd\u638c\u63e1\u4e86\u5427\uff01\u5982\u679c\u60f3\u8981\u7ee7\u7eed\u63d0\u5347\u81ea\u5df1\u7684\u80fd\u529b\uff0c\u90a3\u4e48\u5c31\u6765\u5173\u6ce8\u516c\u4f17\u53f7\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4ec0\u4e48\u4f7f\u7528 PyInstalle&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205427","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205427","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205427"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205427\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}