我使用pygame(python2.7)創建了一個遊戲並嘗試使用py2exe進行轉換。使用py2exe將「pygame」轉換成.exe
這是我使用的模塊: pygame的,Tkinter的,隨機 這是我的 「setup.py」:
:from distutils.core import setup
import py2exe
setup(options={
"py2exe":{
"includes": ["Tkinter","pygame","random"]
}
}
)
當我嘗試運行.exe文件,我得到這個錯誤
NotImplementedError: font module not avaible
(ImportError: DLL load failed: module couldn't be found
我必須改變什麼?
遊戲運行時沒有任何錯誤,而沒有轉換 – Tratori