簡體   English   中英

捆綁時Py2exe缺少模塊

[英]Py2exe missing modules when bundling

在開始之前,我已經檢查了這個問題 ,我的setup.py中已經有了一個windows=[] 請注意,我將要轉換的腳本命名為Tkinter.py。

這是我的setup.py:

from distutils.core import setup
import py2exe

setup(
    windows=['Tkinter.py'],
    options={
        "py2exe":{
            "bundle_files":1,

        }
    }
)

這是錯誤:

C:\Users\Julian\Desktop\Tkinter>python setup.py py2exe
running py2exe

  3 missing Modules
  ------------------
? readline                            imported from cmd, code, pdb
? win32api                            imported from platform
? win32con                            imported from platform
The following modules require a minimum bundle_files option,
otherwise they will not work (currently bundle_files is set to 1):
    tkinter: 2

Please change the bundle_files option and run the build again.
Build failed.

我正在嘗試將其全部捆綁到一個exe文件中。 我很感激幫助!

只需忽略丟失的模塊問題。 它們不會引起任何問題。 對於Bundling問題,只需將bundle值更改為2對我有用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM