【发布时间】:2011-08-13 06:38:41
【问题描述】:
我在尝试冻结导入 ctypes 的 python 脚本时收到以下错误:
Warning: unknown modules remain: _bisect _ctypes _hashlib _heapq _locale _random _socket _ssl _struct _tkinter _weakref array binascii cStringIO collections datetime fcntl itertools math operator pyexpat readline select strop syslog termios time
,而 ctypes 是 python2.5 中的内置模块,并且 ctypes 的路径被正确识别如下:
P ctypes /usr/local/lib/python2.5/ctypes/__init__.py
m ctypes._endian /usr/local/lib/python2.5/ctypes/_endian.py
有没有办法手动复制一些文件并使其工作?有没有人成功地将 ctypes 冻结在一个独立的二进制文件中?
【问题讨论】: