1.错误代码
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>
2.错误原因
具体得错误原因我也不是很清楚,解决得办法我是在pyinstaller · PyPI安装文档中官方说的:
Before using any contributed platform, you need to build the PyInstaller bootloader, as we do not ship binary packages. Download PyInstaller source, and build the bootloader:
翻译:
在使用任何贡献的平台之前,您需要构建PyInstaller引导加载程序,因为我们不提供二进制包。下载PyInstaller源码,并构建引导加载程序:
3.解决办法
我们需要在github下载对应pyinstaller的源码,下载位置GitHub - pyinstaller/pyinstaller at v4.0,下载之后进到对应目录然bootloader,后执行python ./waf all,最后安装Pyinstaller模块。
// 进入目录并执行语句
cd bootloader
python ./waf all
// 安装
python setup.py install
但是在执行python ./waf all 时候会出现如下错误代码如下:
该问题主要原因是我们需要下载c语言的编译器,当然编译器有很种,我使用的是Visual Studio2019社区版中的c编译器, (下载网址自行百度吧)。