{"id":19070,"date":"2025-03-02T00:52:32","date_gmt":"2025-03-01T16:52:32","guid":{"rendered":"https:\/\/blog.iyatt.com\/?p=19070"},"modified":"2025-03-02T01:11:56","modified_gmt":"2025-03-01T17:11:56","slug":"%e4%bd%bf%e7%94%a8-nuitka-%e6%89%93%e5%8c%85%e4%bd%bf%e7%94%a8-jieba-%e7%9a%84%e7%a8%8b%e5%ba%8f%e5%90%8e%e5%87%ba%e7%8e%b0%ef%bc%9afilenotfounderror-errno-2-no-such-file-or-directory-cuser","status":"publish","type":"post","link":"https:\/\/blog.iyatt.com\/?p=19070","title":{"rendered":"\u4f7f\u7528 nuitka \u6253\u5305\u5f15\u7528 jieba \u7684\u7a0b\u5e8f\u540e\u8fd0\u884c\u51fa\u73b0\uff1aFileNotFoundError: [Errno 2] No such file or directory: &#8216;C:\\\\Users\\\\iyatt\\\\AppData\\\\Local\\\\Temp\\\\ONEFIL~1\\\\jieba\\\\dict.txt&#8217;"},"content":{"rendered":"<ul>\n<li>Windows 11 24H2<\/li>\n<li>Python 3.13.1<\/li>\n<li>nuitka 2.6.4<\/li>\n<li>jieba 0.42.1<\/li>\n<\/ul>\n<p>\u5148\u524d\u6211\u4f7f\u7528 pyinstaller \u4f5c\u4e3a\u6253\u5305\u5de5\u5177\u5c31\u6ca1\u95ee\u9898\uff0c\u4e3a\u4e86\u51cf\u5c0f\u7a0b\u5e8f\u6587\u4ef6\u548c\u4f18\u5316\u6027\u80fd\u6539\u4e3a\u4f7f\u7528 nuitka \u6253\u5305\u5c31\u9047\u5230\u4e86\u8fd9\u4e2a\u9519\u8bef\u3002\u5176\u5b9e\u5c31\u662f nuitka \u6253\u5305\u7684\u65f6\u5019\u6ca1\u6709\u628a jieba \u5e93\u76ee\u5f55\u4e0b\u7684 dict.txt \u5b57\u5178\u6587\u4ef6\u6253\u5305\u8fdb\u53bb\u3002<br \/>\n\u6253\u5305\u7684\u65f6\u5019\u624b\u52a8\u6307\u5b9a\u8fd9\u4e2a\u6587\u4ef6\u5c31\u884c\uff0c\u6bd4\u5982\u6211\u8fd9\u91cc jieba \u5e93\u662f\u5b89\u88c5\u5728\u9879\u76ee\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u8def\u5f84\u5c31\u5728 <strong>.\\venv\\Lib\\site-packages\\jieba\\dict.txt<\/strong>\uff0c\u7136\u540e\u9700\u8981\u628a\u5b83\u6253\u5305\u8fdb\u7a0b\u5e8f\u6587\u4ef6\u4e0b\u7684 <strong>jieba<\/strong> \u76ee\u5f55\u4e2d\uff0c\u8fd9\u6837 jieba \u5e93\u624d\u80fd\u6b63\u786e\u627e\u5230\u5b83<\/p>\n<pre><code class=\"language-bash\">--include-data-file=.\\venv\\Lib\\site-packages\\jieba\\dict.txt=.\\jieba\\<\/code><\/pre>\n<p><img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/03\/image-1740847827126.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 689px; --smush-placeholder-aspect-ratio: 689\/400;\" \/><\/p>\n<p>\u6b63\u786e\u6267\u884c<br \/>\n<img decoding=\"async\" data-src=\"https:\/\/blog.iyatt.com\/wp-content\/uploads\/2025\/03\/image-1740847936201.png\" alt=\"file\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 879px; --smush-placeholder-aspect-ratio: 879\/293;\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows 11 24H2 Python 3.13.1 nuitka 2.6.4 jieba 0.42.1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"zakra_page_container_layout":"customizer","zakra_page_sidebar_layout":"customizer","zakra_remove_content_margin":false,"zakra_sidebar":"customizer","zakra_transparent_header":"customizer","zakra_logo":0,"zakra_main_header_style":"default","zakra_menu_item_color":"","zakra_menu_item_hover_color":"","zakra_menu_item_active_color":"","zakra_menu_active_style":"","zakra_page_header":true,"_lmt_disableupdate":"no","_lmt_disable":"no","footnotes":""},"categories":[1,592,580],"tags":[],"class_list":["post-19070","post","type-post","status-publish","format-standard","hentry","category-all","category-python","category-580"],"modified_by":"IYATT-yx","_links":{"self":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/19070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19070"}],"version-history":[{"count":6,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/19070\/revisions"}],"predecessor-version":[{"id":19078,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=\/wp\/v2\/posts\/19070\/revisions\/19078"}],"wp:attachment":[{"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.iyatt.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}