这是由py2exe中的错误引起的,它将在下一个版本中修复。更多信息
该解决方案是添加
ctypes到
bootstrap_modules在
C:Python34Libsite-packagespy2exeruntime.py文件(行117)。
...# modules which are always neededbootstrap_modules = { # Needed for Python itself: "ctypes", "precs", "io", "encodings.*", }...


