How can we install python3 in wine for 32bit ubuntu ?

Using winetricks 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

  • Python 2.7 and Python 3.4 are both natively available and probably even preinstalled on Ubuntu. Do you have a special reason for wanting to run it in wine? – Byte Commander Sep 25 '15 at 10:58
  • 2
    yes I want to deploy my python3 app to windows exe and i don't have windows to test it. using pyinstaller – Rohit Karadkar Sep 25 '15 at 11:01

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

  • 1
    yes we can always use VM's but my processor doesn't support virtualization (KVM!). – Rohit Karadkar Sep 28 '15 at 10:35
  • @RohitKaradkar According to VirtualBox's documentation, Windows 7 and earlier (Which are used for all but 3 vms) do not require hardware virtualisation. – 3Doubloons Sep 28 '15 at 16:06

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:

  • Windows x86-64 embeddable zip file
  • Windows x86 embeddable zip file

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.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.