Reputation: 28
I've downloaded python 3.10 32 bits and tried to convert it again but still, it came out as 64 bit. I used pycharm to code and pyinstaller to convert.
Upvotes: 0
Views: 2445
Reputation: 107
Seems you want to generate the 32-bit app by pyinstaller, but failed. Because you used 64-bit python to run pyinstaller.
To solve this, you can install Python3(32-bit version) in a new environment and use Python3(32-bit version) to invoke pyinstaller to generate the 32-bit app.
Upvotes: 1
Reputation: 1217
Python is usually an interpreted language; correct Python code will run on any machine that has the interpreter installed, with no modifications. It sounds as if what you want to do is to take code that you wrote on a 64 bit system and use Pyinstaller to compile it into an executable for a 32 bit system. The easiest way to do that is to install Pyinstaller on the target machine, put your code there, and run Pyinstaller; the Pyinstaller manual explicitly says that it's not a cross-compiler.
Upvotes: 0