PyInstaller does not include a pre-compiled bootloader...,Checking for ‘msvc‘ C compiler

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编译器, (下载网址自行百度吧)。

评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

拼命_小李

给点鼓励

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值