Search code examples
pythonpyinstaller32bit-64bit

How to create 32 bit version of Python code from 64 bit


I created a 64 bit version of my python code using pyinstaller. However, I would like to create a 32 bit version. It seems like I would need to download a 32 bit version of python and redo my entire code in that version which seems like a lot of work. Is there no simple method of achieving my goal without having to redo everything?

Thanks


Solution

  • The code you actually have to run in 64 bit should work in a 32 bit environment. What you should make sure is that dependencies you are using in your code also work in 32 bit.