{"id":43638,"date":"2026-07-30T12:17:31","date_gmt":"2026-07-30T04:17:31","guid":{"rendered":"https:\/\/www.zhidianwl.net\/zhidianwl\/?p=43638"},"modified":"2026-07-30T12:17:31","modified_gmt":"2026-07-30T04:17:31","slug":"labelme%e6%80%8e%e4%b9%88%e7%94%9f%e6%88%90%e7%a6%bb%e7%ba%bfexe%e5%8a%9e%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.zhidianwl.net\/zhidianwl\/2026\/07\/30\/labelme%e6%80%8e%e4%b9%88%e7%94%9f%e6%88%90%e7%a6%bb%e7%ba%bfexe%e5%8a%9e%e6%b3%95\/","title":{"rendered":"labelme\u600e\u4e48\u751f\u6210\u79bb\u7ebfexe\u529e\u6cd5"},"content":{"rendered":"<p>\u4e3a\u4e86\u5c06 Labelme \u8f6c\u6362\u6210\u79bb\u7ebf exe \u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a PyInstaller \u7684\u5de5\u5177\u3002PyInstaller \u662f\u4e00\u4e2a\u628a Python \u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\uff08Windows \u4e3a exe\u3001Mac \u4e3a app\uff09\u7684\u5de5\u5177\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u751f\u6210 Labelme \u79bb\u7ebf exe \u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<p>1. \u5b89\u88c5\u6240\u9700\u5de5\u5177<\/p>\n<p>\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u7684\u8ba1\u7b97\u673a\u5b89\u88c5\u4e86 Python\u3002\u60a8\u53ef\u4ee5\u4ece https:\/\/www.python.org\/downloads\/ \u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 Python\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528 pip \u5b89\u88c5\u4ee5\u4e0b Python \u5e93\uff1a<\/p>\n<p>&#8211; PyInstaller\uff1a\u7528\u4e8e\u5c06 Python \u7a0b\u5e8f\u8f6c\u6362\u4e3a\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<p>&#8211; Labelme\uff1a\u6807\u6ce8\u5de5\u5177<\/p>\n<p>&#8211; PyQt5\uff1a\u7528\u4e8e GUI \u754c\u9762<\/p>\n<p>&#8211; QDarkStyle\uff1a\u53ef\u9009\u5b89\u88c5\uff0c\u5982\u679c\u60f3\u4f7f\u7528\u6df1\u8272\u4e3b\u9898<\/p>\n<p>\u5728\u5b89\u88c5\u8fd9\u4e9b\u5e93\u65f6\uff0c\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>pip install pyinstaller labelme PyQt5 qdarkstyle<\/p>\n<p>&#8220;`<\/p>\n<p>2. \u4e0b\u8f7d\u6216\u514b\u9686 Labelme GitHub \u4ed3\u5e93<\/p>\n<p>\u4ece https:\/\/github.com\/wkentaro\/labelme \u4e0b\u8f7d\u6216\u514b\u9686 Labelme \u9879\u76ee\u7684\u6e90\u4ee3\u7801\u3002\u60a8\u53ef\u4ee5\u70b9\u51fb &#8220;Code&#8221; \u6309\u94ae\u4e0b\u8f7d zip \u6587\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 git \u547d\u4ee4\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>git clone https:\/\/github.com\/wkentaro\/labelme.git<\/p>\n<p>&#8220;`<\/p>\n<p>3. \u751f\u6210\u79bb\u7ebf exe \u6587\u4ef6<\/p>\n<p>\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u8f6c\u5230 labelme \u9879\u76ee\u7684\u6e90\u4ee3\u7801\u76ee\u5f55\u3002\u7136\u540e\u4f7f\u7528 PyInstaller \u751f\u6210 exe \u6587\u4ef6\u3002\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>cd path-to-labelme<\/p>\n<p>pyinstaller &#8211;name labelme &#8211;onefile &#8211;windowed labelme\/__main__.py<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u91cc\uff0c\u201cpath-to-labelme\u201d \u662f Labelme \u6e90\u4ee3\u7801\u76ee\u5f55\u7684\u8def\u5f84\u3002<\/p>\n<p>\u5982\u679c\u53d1\u73b0\u7f3a\u5931\u4e00\u4e9b\u5e93\u6216\u8005 Python \u6a21\u5757\uff0c\u53ef\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u7f3a\u5931\u7684\u5e93\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>pip install library-name<\/p>\n<p>&#8220;`<\/p>\n<p>\u7136\u540e\u91cd\u65b0\u6267\u884c\u4e0a\u9762\u7684 PyInstaller \u547d\u4ee4\u3002<\/p>\n<p>4. \u83b7\u53d6\u79bb\u7ebf exe \u6587\u4ef6<\/p>\n<p><a href=\"https:\/\/www.yimenexe.com\/ruanjian-kaifa-4137.html\">vs2010\u82f1\u6587\u7248\u751f\u6210exe\u6587\u4ef6<\/a><\/p>\n<p>PyInstaller \u4f1a\u5728 `dist` \u76ee\u5f55\u4e0b\u751f\u6210\u540d\u4e3a `labelme.exe` \u7684\u53ef\u6267\u884c\u6587\u4ef6\uff08\u5728 <a href=\"https:\/\/www.yimenexe.com\/ruanjian-kaifa-590.html\">java\u6253\u5305exe\u4ee3\u7801<\/a>Windows \u7cfb\u7edf\u4e0b\uff09\u3002\u8fd9\u4e2a\u6587\u4ef6\u5df2\u7ecf\u5305\u542b\u4e86\u6240\u6709\u4f9d\u8d56\u5e93\uff0c\u5e76\u53ef\u4ee5\u5728\u5176\u4ed6\u6ca1\u6709\u5b89\u88c5 Labelme \u7684 Windows \u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u3002<\/p>\n<p>5. \u5206\u53d1\u548c\u8fd0\u884c\u79bb\u7ebf exe \u6587\u4ef6<\/p>\n<p>\u73b0\u5728\u60a8\u53ef\u4ee5\u5c06 `labelme.exe` \u6587\u4ef6\u590d\u5236\u5230\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\u5e76\u8fd0\u884c\u3002\u7528\u6237\u65e0\u9700\u5b89\u88c5 Pytho<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-03\/16\/10\/25240958719.jpg\" \/><\/figure>\n<\/p>\n<p>n \u6216\u5176\u4ed6\u4f9d\u8d56\u5e93\uff0c\u5373\u53ef\u4f7f\u7528 Labelme \u6807\u6ce8\u5de5\u5177\u3002<\/p>\n<p>\u603b\u7ed3\uff1a\u6211\u4eec\u4f7f\u7528\u4e86 PyInstaller \u5de5\u5177\u5c06 Labelme \u8f6c\u6362\u4e3a\u53ef\u5728\u5176\u4ed6\u8ba1\u7b97\u673a\u4e0a\u8fd0\u884c\u7684\u79bb\u7ebf exe \u6587\u4ef6\u3002\u8fd9\u53ef\u80fd\u5bf9\u4e8e\u6ca1\u6709 Python \u5f00\u53d1\u73af\u5883\u7684\u7528\u6237\u975e\u5e38\u6709\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e3a\u4e86\u5c06 Labelme \u8f6c\u6362\u6210\u79bb\u7ebf exe \u6587\u4ef6\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u4e00\u79cd\u79f0\u4e3a PyInstaller \u7684\u5de5\u5177\u3002PyInstaller \u662f\u4e00\u4e2a\u628a Python \u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\uff08Windows \u4e3a <\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[32525,32524,18,12,2075],"topic":[],"class_list":["post-43638","post","type-post","status-publish","format-standard","hentry","category-zhuomianruanjian","tag-pythonexe","tag-vbaexe","tag-18","tag-12","tag-2075"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/43638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/comments?post=43638"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/43638\/revisions"}],"predecessor-version":[{"id":43649,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/posts\/43638\/revisions\/43649"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/media?parent=43638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/categories?post=43638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/tags?post=43638"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.zhidianwl.net\/zhidianwl\/wp-json\/wp\/v2\/topic?post=43638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}