2011-04-26 70 views
0

我收到以下錯誤試圖凍結進口ctypes的Python腳本:的Python:錯誤凍結ctypes的

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?

回答

0

我建議你使用py2exe或類似的東西,而不是凍結。