pyinstaller packed 32-bit program in 64-bit system

Ambient Description: win10 64-bit, python3.6-64-bit version is installed

Problems encountered: win10 64 bits packaged into exe file, can not run in 32-bit systems

Requirements: Use python package generated exe files, win64-bit and 32-bit exe can run

Solution: no replacement into computer 32, and is encapsulated, simply python 32 can be changed

1, download and install 32 python3.5 (the version number is not limited), Download https://www.python.org/downloads/windows/

2, download and install pywin32 32, packaged into exe pywin32 this package needs, Download https://sourceforge.net/projects/pywin32/files/pywin32

Under the pywin32, click Install, the next step has been to, and then enter cmd python3.5 directory
 run the command: ./ Scripts / pywin32_postinstall.py -install

3, download and install pyinstaller3.4, Download https://github.com/pyinstaller/pyinstaller

Unzip the files and files in python3.5 directory, cmd into the pyinstaller directory
run the command: python setup.py install

Note: If your computer has 64 python version, we recommend 32 python.exe rename, for example, instead python32.exe

Input python32 -m pip install xxx installation package

4, packing

The copy of the program to the python python3.5 \ pyinstaller, open cmd, run command python32 pyinstaller.py -F xx.py

 

 


---------------------
reference links: HTTPS: //blog.csdn.net/allan2222/article/details/88035116
                  https://www.2cto.com /kf/201905/809870.html

Guess you like

Origin www.cnblogs.com/xiohao/p/11261792.html