對不起,如果這是一個非常愚蠢的問題,
如何讓py2exe找到我想轉換的模塊?
我不斷收到此錯誤:py2exe找不到.py
C:\Python27\lib\distutils\dist.py:267: UserWarning: Unknown distribution option: 'dist_dir'
warnings.warn(msg)
running py2exe
creating C:\Users\David\workspace\setup\src\dist
*** searching for required modules ***
error: Pygame.py: No such file or directory
我擡頭一看盡可能多的對Pygame的教程.exe
或問題有的都有了,但他們的問題似乎發生後,他們創造了一個.exe
文件...
我可以甚至無法創建一個。
我使用的確切相同的代碼,所述一個上http://pygame.org/wiki/Pygame2exe發現不同的是我改變:
class BuildeExe:
def __init__(self):
#Name of starting .py
self.script = "MyApps.py"
成
class BuildExe:
def __init__(self):
#Name of starting .py
self.script = "Pygame.py"
我Pygame.py存在在 「C:\用戶\」 用戶名「\工作區\ pygame中的\ src」。請幫忙。
這可能有所幫助。 http://www.pygame.org/wiki/Pygame2exe?parent=CookBook – ninMonkey 2013-02-10 13:30:42
嗯......我相信是從我貼的鏈接有相同的代碼。我試過了,但沒有奏效。謝謝你^^ – 2013-02-13 00:49:03