2017-01-30 13 views
0

私のコードからexeファイルを作成しようとしています。しかし、py2exeは、このようなエラーを与える:Python 3 py2exeモジュールなしtkinter._fix

import tkinter._fix as fix ImportError: No module named 'tkinter._fix'

私のsetup.pyファイルは次のように

from distutils.core import setup 

setup(console=['userInterface.py'], options={ 
       'py2exe': { 
        'includes': ['tkinter'] 
       } 
     }) 

である私のpythonを使用している3.5 32bit版

答えて

0

py2exeは、Python 3.4上で実行されます。私はあなたがあなたのPythonのバージョンをダウングレードするなら、これがうまくいくと思います。また、pyinstallerを使用して、PythonのWindowsアプリケーションを実行可能ファイルにコンパイルすることもできます。

関連する問題