我在 win10-64 上全新安装了 Python37-32
所有要求似乎都得到满足,我的 hello world python 文件正在执行
if __name__ == '__main__' :
print("hello world")
但是当我尝试使用 pyinstaller 时
pyinstaller hello.py
它以错误结束
5764 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
5764 INFO: Bootloader c:\users\xxxxxxx\appdata\local\programs\python\python37-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run_d.exe
5764 INFO: checking EXE
5764 INFO: Building EXE because EXE-00.toc is non existent
5779 INFO: Building EXE from EXE-00.toc
Fatal error: PyInstaller does not include a pre-compiled bootloader for your
platform. For more details and instructions how to build the bootloader see
<https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html>
这是 Windows 上的基本安装,我不必手动重新编译任何引导加载程序(我习惯于使用较旧的 python 版本进行 pyinstaller,并且从未遇到过问题)。
我应该从哪里寻找解决这个问题的方法?
EDIT
该错误出现在 python37-32 中,但不在 python37(64 位)中
下载py安装程序并使用 pip 从源安装。
python setup.py install
然后,如果您的系统是 64 位,则会构建 64 位引导加载程序,尽管 python37-32 需要 32 位引导加载程序。
在源码中cd bootloader
并运行python ./waf all --target-arch=32bit
正如所解释的here
然后复制run.exe
从 build 文件夹到 pyinstaller 32bit bootloader 文件夹。
An issue已在pyinstaller github上打开。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)