Because the python applications we distribute may run in 64 bit or 32-bit environments, we need to configure two packaging environments for the same set of application code. How to configure them?
Steps are as follows
1. Download and install 32-bit and 64 bit Python on the computer, and select “add Python to path” during the installation
2. Open the project code in pycharm, and then open it in turn“File—>Settings—>Project Interpreter—>Select project interpreter on the right: “show all” in the text box—>Select the+—>Based on the two versions of Python installed in step 1, create two virtual running environment directories under the project code: venv-win32 and venv-win64
3. After the virtual operation environment is configured, enable the virtual operation environment in turn, and then PIP install all required modules in the terminal window of pycharm.
4. After the two virtual running environments are configured, use the commands of PYI makespec and pyinstaller in the terminal window of pycharm to package and make running programs