how to recompile the bootloader of Pyinstaller

前端 未结 2 1286
深忆病人
深忆病人 2020-12-09 20:07

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 bootloa

相关标签:
2条回答
  • 2020-12-09 20:22

    Hey you don't need visual studio to build pyinstaller's bootloader, you can do it in your terminal if you have python or python3 installed. It's important to know which one you are using. I will assume you use python3, try the following steps in your terminal/command line:

    1) git clone https://github.com/pyinstaller/pyinstaller

    2) cd pyinstaller, then cd bootloader

    3) Run “python3 ./waf distclean all” to build the bootloader for your system.

    4) Once the bootloader has been built, type in: “python3 setup.py install”

    5) This should have installed pyinstaller. Type pyinstaller in the terminal and hit enter. It should recognize the command, but it will complain about more arguments.

    6) Use the command "pyinstaller yourfile.py" to create your executable.

    Hope this helped!

    0 讨论(0)
  • 2020-12-09 20:26

    The bootloader source is not installed if you are using pip install …. You need to use a source package of PyInstaller (either a git clone or download an archive from github).

    GitHub - Bootloader Issue

    PyInstaller GitHub

    0 讨论(0)
提交回复
热议问题