Install Python Wine

Wine Development 6.11 Released with Theming Support Howto Install June 19, 2021 — Leave a comment A new development release of the free open-source implementation to run Windows apps on Linux, Wine 6.11 is out!

The Python programming language 3.10 is now in release candidate phase. For testing purpose you can install the RC release via PPA in Ubuntu 20.04, Ubuntu 18.04, Linux Mint 19.x/20, and derivatives.

This is the penultimate release preview contains only reviewed code changes. Until Python 3.10.0 final to be released on 2021-10-04, they will be second candidate if necessary which is planned for 2021-09-06.

New major features and changes compare to Python 3.9:

  • Deprecate and prepare for the removal of the wstr member in PyUnicodeObject.
  • Allow writing union types as X | Y
  • Parameter Specification Variables
  • Precise line numbers for debugging and other tools.
  • Add Optional Length-Checking To zip.
  • Parenthesized context managers are now officially allowed.
  • Deprecate distutils module.
  • Explicit Type Aliases
  • Structural Pattern Matching: Specification
  • Structural Pattern Matching: Motivation and Rationale
  • Structural Pattern Matching: Tutorial
  • Require OpenSSL 1.1.1 or newer
  • Remove Py_UNICODE encoder APIs
  • Add optional EncodingWarning

Install Python 3.10 RC1 via PPA:

Wine is a tool (not an emulator) for running Windows based programs on other non-Windows based operating systems such as Linux. These are the steps to get it installed on Kali Linux with Python 2.7 First add the i386 architecture to your system in case you don't already have it, the command won't do anything. In this article, we will look at how to install & use Wine in Linux. How to Install & Use Wine in Linux. Here are the steps to install & use Wine in Ubuntu Linux. Enable 32-bit architecture. Open terminal and run the following command to enable 32-bit architecture using dpkg command. $ sudo dpkg -add-architecture i386. When prompted, click Reload. Open the Software Center. Search for Wine. Click the Wine entry and then click Install. Allow the installation to complete. Wine is now ready to help you install and run Windows applications. Remember, however, that not every application will work.

So far, it’s Python 3.10 RC1, which is available to install via this Ubuntu PPA. NOTE for Ubuntu 16.04, the package stuck at Python 3.10 alpha 6 due to old SSL library.

1.) Open terminal from system application menu, and run command to add the PPA:

Type user password (no asterisk feedback) for sudo prompts and hit Enter to continue.

Install Python Wine

2.) Then refresh system package via command:

3.) Finally install Python 3.10 via command: Airco heliwelder v manual.

Once installed, check via python3.10 --version command or just run python3.10 to access the IDE in terminal.

Uninstall Python 3.10:

To remove the programming language, run command:

And remove the Ubuntu PPA via Software & Updates utility under Other Software tab.

Using Wine and Pyinstaller.

Pyinstaller is a program that packages Python programs into stand-alone executables, under the most used OSs (Windows, Linux, Mac OS X, FreeBSD, Solaris and AIX).
Initially Pyinstaller had a beta feature that allows the cross-compilation of a windows executable under Linux.
However, due the instability of the feature, it has been removed since version 1.5.

Install

Fortunately, is still possible to package a Windows executable using PyInstaller under Wine.

Install Python Wine

1. Install wine and Python

Install Python 3 Wine

If you need to compile a 32bit executable, you need to install wine32:

2. Install PyInstaller on wine

3. Package a python scripts

Package Python scripts (e.g., helloworld.py) with pyinstaller.

The Windows executable file is located in dist/.

Install Python Winget

Finally, transfer the executable on a windows box and test it:

Wine Install Python Headless

References

Comments are closed.