对不起,如果这是一个非常愚蠢的问题,
如何让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