PyInstaller 2.1 IOError Windows-32bit run.exe

时间:2017-07-26 13:14:39

标签: python windows pyinstaller

突然间,PyInstaller 2.1将无法构建我的项目。它不久前没有问题,也没有明显的解释。它抛出一个IOError,说我的Windows-32bit run.exe丢失了。

1 个答案:

答案 0 :(得分:0)

问题是该死的Windows 10更新! Windows Defender现在认为某些PyInstaller exe是恶意软件!因此,它会自动删除这些必需的文件。那些混蛋!

为了解决这个问题,我添加了文件被删除的文件夹C:\Program Files (x86)\PyInstaller-2.1\PyInstaller\bootloader\Windows-32bit作为Windows Defender排除。方法如下:

https://support.microsoft.com/en-au/instantanswers/64495205-6ddb-4da1-8534-1aeaf64c0af8/add-an-exclusion-to-windows-defender-antivirus

幸运的是,我在Windows 8机器上有相同的文件,所以我只是从那里复制它们并将它们放到适当的位置。如果你没有,你可能需要重新安装PyInstaller。

我还需要关闭Windows Defender来运行我的构建过程,否则它会继续出错。您可能需要先重新安装该程序。