Pyinstaller missing bootloader

后端 未结 2 1627
广开言路
广开言路 2020-12-22 00:35

I fresh installed Python37-32 on win10-64 All requirements seem to be satisfied and my hello world python file is executing

if __name__ == \'__main__\' :
            


        
相关标签:
2条回答
  • 2020-12-22 01:00

    Download pyinstaller and install from source instead using pip.

    python setup.py install
    

    Then if your system is 64bit, the 64bit bootloader is built altough the python37-32 needs 32 bit bootloader. In the source cd bootloader and run python ./waf all --target-arch=32bit as explained here

    Then copy run.exe from build folder to pyinstaller 32bit bootloader folder.

    An issue has been opened on pyinstaller github.

    0 讨论(0)
  • 2020-12-22 01:09

    First, ensure that you are running the latest version of Pyinstaller==3.5. The previous versions of pyinstaller do not support python3.7.

    If that is okay, it could be because of an incomplete installation of pyinstaller Check manually if the bootloader files are present for your pyinstaller installation. The bootloader (pre-compiled) files should be in your python installation

    c:\users\xxxxxxx\appdata\local\programs\python\python37-32\lib\site-packages\PyInstaller\bootloader\Windows-32bit\run_d.exe
    

    As a last resort, I would suggest installing pyinstaller through setup.py. It should build the bootloader for your machine when you run setup.py https://pythonhosted.org/PyInstaller/installation.html#installing-from-the-archive

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