【问题标题】:Python: Error Freezing ctypesPython:冻结 ctypes 时出错
【发布时间】: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 冻结在一个独立的二进制文件中?

【问题讨论】:

    标签: python ctypes freeze


    【解决方案1】:

    我建议你使用 py2exe 或类似的东西而不是冻结。

    【讨论】:

      猜你喜欢
      • 2011-09-02
      • 1970-01-01
      • 2018-02-23
      • 2022-11-20
      • 1970-01-01
      • 2014-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多