我试图用pyinstaller创建一个非常基本的可执行文件,但是当我运行它时,winpexpect(pexpect的windows版本)抛出了一个相当不可破解的错误。我只能推断出在使用winspawn类时会发生错误。在
C:\Users\Dan\Dropbox\Programming\Python\MC\ServerSense>ServerSense.exe
Traceback (most recent call last):
File "<string>", line 170, in <module>
File "<string>", line 52, in __init__
File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\winpexpect", line 346, in __in
it__
File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\pexpect", line 429, in __init_
_
File "C:\Users\Dan\Dropbox\Programming\Python\Packagers\PyInstaller\PyInstalle
r-2.1\ServerSense\build\ServerSense\out00-PYZ.pyz\winpexpect", line 401, in _spa
wn
pywintypes.error: (2, 'CreateProcess', 'The system cannot find the file specifie
d.')
有谁能提供一些关于我如何使用pyinstaller打包winpexpect的见解吗?它甚至不让我知道它找不到哪个文件。在
弄明白了,我在这里用了winpexpect的分叉:https://bitbucket.org/weyou/winpexpect/wiki/Home
它支持cx_freeze(py2exe也可以,我使用的是它)
相关问题 更多 >
编程相关推荐