【发布时间】:2019-05-04 04:40:22
【问题描述】:
我有一个使用 PyInstaller 生成的 exe 文件的防病毒误报问题,通过搜索我找到了 this 答案女巫包括重新编译引导加载程序,但我无法完成它。
这是我迄今为止尝试过的:
- 尝试使用“choco install -y vcbuildtools”安装带有 choco 的 C++ 构建工具,但由于某些原因安装失败。
- 从here 安装Visual Studio 社区,然后转到“cd bootloader”并执行
python ./waf distclean all得到错误can't open file './waf': [Errno 2] No such file or directory - 安装 MinGW-w64 并设置路径然后重试,我得到了同样的错误。
或者也许还有另一种方法可以使可执行文件未被检测为病毒/木马。
使用的包:PyQt5、pysnmp、pandas、numpy。
编辑:
感谢@Ana Knickerbocker 的回答,我能够取得进展,现在当我运行python ./waf all 时,我得到了错误:
Python Version : 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]
Checking for 'msvc' (C compiler) : not found
Checking for 'gcc' (C compiler) : not found
Checking for 'clang' (C compiler) : not found
could not configure a C compiler!
我想我还没有编译器,我试过pip install vsbuildtools但我收到了这条消息:No matching distribution found for vcbuildtools有什么想法吗?
我在 Windows 7 x64 上
【问题讨论】:
-
你有没有成功重新编译过pyinstaller的bootloader?
-
很遗憾,没有:(
标签: python pyinstaller antivirus virus false-positive