4 回答
TA贡献1798条经验 获得超7个赞
我遇到了同样的问题,我可以通过转到 Windows 防病毒保护选项并添加我的脚本所在的文件夹作为例外来修复它。
转到“开始”>“设置”>“更新和安全”>“Windows 安全”,然后选择“病毒和威胁防护”。在“病毒和威胁防护设置”下,选择“管理设置”。添加包含所需脚本的文件夹作为例外。
TA贡献1796条经验 获得超4个赞
我花了几个小时寻找解决方案,几乎尝试了互联网上的所有可能的解决方案,此外,我终于通过安装较低版本(pyinstaller v5.6.2)而不是最新版本解决了问题,这解决了它我!
TA贡献1828条经验 获得超4个赞
我今天遇到了同样的问题。我在 Windows 10 上安装 Anaconda。我最终尝试以管理员身份运行 anaconda 提示符并重新运行相同的 pyinstaller 命令。以管理员身份运行解决了我的问题。
TA贡献1824条经验 获得超5个赞
Without the knowing of the script you are changing to exe, it is difficult to guess. The attached slice from the command line in your question about the error also says nothing, as @Eric Sunrightly pointed out. So it remains to give the reason for the error in other cases seemingly not necessarily related to your question, hoping that through the associations it will be possible to remove the cause of the error in yours and maybe in other cases. Eventually, I found this question looking for an answer to the same error. For me, the reason for the error was to provide the optional argument –icon=app.ico. It turned out that a file with the extension .ico was not an icon at all, but a different format, changed by the changing only the extension. When I changed a file saved in the format . png to .ico in the correct way pyinstaller stopped reporting an error.
添加回答
举报