简体   繁体   中英

Python 3 py2exe no module tkinter._fix

I'm trying to make an exe file from my code. but py2exe gives an error like this:

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

my setup.py file is like this

from distutils.core import setup

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

I'm using python 3.5 32bit

py2exe runs on python 3.4. I think this will work if you downgrade your version of python. Alternatively, you can use pyinstaller to compile your python windows application into an executable.

tkinter._fix was removed after python 3.5. And py2exe for support python 3.6+ is here: https://github.com/py2exe/py2exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM