抱歉,如果这是一个非常愚蠢的问题,
我如何让 py2exe 找到我想要转换的模块?
我不断收到此错误:
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:\Users\"username"\workspace\pygame\src" 中。请帮忙。