Traceback (most recent call last):
File "run.py", line 4, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wechatsogou\__init__.pyo", line 16, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wechatsogou\api.pyo", line 14, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wechatsogou\identify_image.pyo", line 10, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "wechatsogou\filecache.pyo", line 3, in <module>
File "zipextimporter.pyo", line 82, in load_module
File "werkzeug\__init__.pyo", line 151, in <module>
ImportError: No module named exceptions
when using the py2exe package, I reported the above error, do you know how to solve it?
this is my packing code:
from distutils.core import setup
import py2exe
import sys
includes = ["encodings", "encodings.*"]
sys.argv.append("py2exe")
options = {"py2exe": {
"compressed": 1,
"optimize": 2,
"ascii": 0,
"bundle_files": 1,
}
}
setup(
version = "",
description = "",
name = "",
options = options,
zipfile=None,
console = [{"script":"run.py",
"icon_resources":[(1, "ico.ico")]}])