[Python] how to recompile the bootloader of Pyinstaller

Discussão em 'Python' iniciado por Stack, Março 20, 2025.

  1. Stack

    Stack Membro Participativo

    I have an AntiVirus false positive problem of my exe file generated using PyInstaller, by searching i found this answer witch consist of recompiling the bootloader and i just can't get it done. This what i've tried so far:

    1. try to install C++ build-tools with choco using "choco install -y vcbuildtools" for some reasons the installation failed.
    2. installing visual studio community from here then goes to "cd bootloader" and do python ./waf distclean all got the error can't open file './waf': [Errno 2] No such file or directory
    3. installing MinGW-w64 and setting the path then retry, i got the same error.

    Or maybe there is another way to make the executable not detected as virus/trojan.

    Packages used : PyQt5, pysnmp, pandas, numpy.

    EDIT: Thanks to @ana Knickerbocker answer i was able to make a progression, now when i run python ./waf all i got the error : 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!

    I guess i still don't have a compiler, i've tried pip install vsbuildtoolsbut i got this message : No matching distribution found for vcbuildtools any ideas ?

    Im on Windows 7 x64

    Continue reading...

Compartilhe esta Página