How to install Wine and Python 2.7

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 if you have it already. Skip this first step if that is the case.

Wine-Python-1

Next run apt-get update:

apt-get update

To update your repositories for Linux. This will make sure you get the latest version of Wine.

Wine-Python-2

Install the Wine package using apt-get install wine32. This could take a few minutes depending on your internet connection and you will be asked to confirm the install near the start.

apt-get install wine32

Wine-Python-3

Once installed you should see wine in the /root/.wine folder with a Windows C:/ structure inside it:

Wine-Python-4

The next stage is to download and install Python into your Wine install. Visit the Python download page at:

https://www.python.org/downloads/release/python-2714/

Wine-Python-5

and download the Windows x86 MSI Installer. The file is only 19MB in size so should come down very quickly.

Wine-Python-6

Wine-Python-7

Now navigate to your downloads folder in the terminal and install it using wine msiexec /i python-2.7.14.msi

wine msiexec /i python-2.7.14.msi

Wine-Python-8

The install wizard should appear and unless you have some specific requirements for the install you can just hit next, next, next, finish through the windows.

Wine-Python-9

Wine-Python-10Wine-Python-11

Once the install is complete you can confirm it’s there by navigating to the new Python folder within the Wine directory:

Wine-Python-12

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: