How can we install python3 in wine for 32bit ubuntu ?
python2.7 is possible but my app is written in python3
I don't have windows to test my application so I am going this hard way
Microsoft offers free Windows VM images for download. They're meant to be used to test websites in Internet Explorer, but they're still fully featured copies of Windows on which you could install Python 3 and test your application in a more faithful Windows environment than Wine
I have a similar issue: I have to develop a Python3 application on Ubuntu which is to be delivered on Windows. I wanted to use pyInstaller to produce a Windows executable from Wine, since I unfortunately do not have access to a Windows box. But I failed to install Python3 on Wine too.
However, may be there is another option: using what’s called a python embeddable zip archive. See here: 3.8. Embedded Distribution (docs.python.org).
You can download it from releases download pages, as in this one (an example) : Python 3.5.2 (python.org).
You have two:
This means you have to ask the client if he/she is running a 32 bits or a 64 bits Windows.
That’s not perfect, since if Python3 is not able to run in Wine, there is no way to test the application’s Windows version. But at least, that’s a way to package something which should run on Windows, with the hope the source will behave on Windows the same way it behave on Ubuntu. At least, you should develop on the Ubuntu side, using a Python virtual environment. See 28.3. venv — Creation of virtual environments.