Home > Blog > Installing Python26 and PyGTK on XP

Installing Python26 and PyGTK on XP

Posted by T800 on December 31, 2010

Installing PyGTK can be frustrating if you have the wrong file set or downloaded from yet another incomplete source. This is a quick install guide, an easy walk through with the links to install PyGTK into Python26 complete with the Glade Editor.

 

Ideally you want a clean XP SP3 with net 3.5 installed. Any previous versions of python should be removed and the registery cleaned up with a cleaner such as ccleaner.

First, download and install python-2.6.msi

capture_31122010_145318.jpg

Install Python26 to "c:\python26\" for all users


capture_31122010_145525.jpg

Use default settings and click next

 

Goto the 'Control Panel', (in the classic view),  'System', click the 'Advanced' tab and 'Enviroment Variables'. Now scroll 'System Variables' to 'Path', click on 'Edit' and add to the end of the line... ';C:\Python26;C:\Python26\Lib;C:\Python26\Lib\site-packages' , then click 'Ok' and close out the panel.

capture_07122010_233044.jpg

 

capture_07122010_233101.jpg

 

Instaling PyWin32

Download  pywin32-214.win32-py2.6.exe, and execute the file to install.

Installing WMI

Download from WMI-1.4.7 , unzip the package, open the 'Command Prompt', 'cd' to were you unzipped the package and type 'c:\python26\python setup.py install'  to install the package.

Restart the computer and then run the Command Prompt and type "Python" to check the path is in place.

capture_31122010_180536.jpg

You can check the Python paths with...

import sys
sys.path

And you can add paths with the command...

import sys
sys.path.append("/home/me/mypy")

Now just a quick test by try importing a few items to check the path settings are sane...

import pywintypes
import win32event

PyGTK All-in-one

Download PyGTK-all-in-one and execute to install

capture_19032011_224834.jpg

I ticked them all here as I like the development tools

Your instalation is now complete only requiring a reboot and its ready to use. However, before you reboot you may consider adding more packages. Later on Man-Machine we hope to be running some projects that will need some other packages, so I shall include some of the common packages we shall be using.

PIL, Download PIL-1.1.7.win32-py2.6.exe and execute to install. This package supplies Python Imaging modules for graphics handling.

Numpty, Download numpy-1.5.1-win32-superpack-python2.6.exe and execute to install.

Pyfilesystem, fs-0.3.0.tar.gz , Extract, using the commpand prompt cd to the extracted folder and use 'python setup.py install' to install the package.

If your having trouble extracting the files you might like to try IZARC. You may consider unticking zip in the associations to retain the MS explorer intergration.

Mutagen, mutagen, Extract, using the commpand prompt cd to the extracted folder and use 'python setup.py install' to install the pagage. Audio ID3 tag package.

PyGame, Pygame, download and execute to install

CX Freeze, CX_freeze , python packaging, run to install.

Py2Exe, Download py2exe, python packaging, run to install.

WXPython, wxPython2.8-win32-unicode-2.8.11.0-py26.exe, run to install, personally I untick 'Make default' in the setup. Its a presonal choice but retains the conveneance methods used in Py-FS.

Musicbrainz, python-musicbrainz2-0.7.2.tar.gz, Extract, using the commpand prompt cd to the extracted folder and use 'python setup.py install' to install the package

GStreamer, Download GStreamer and run to install and then the GStreamerSDK 

Now a final reboot is required before use.

If you perfer GEdit as your editor, you can install this from gedit-setup-2.30.1-1.exe or Editra.win32.0.6.20.exe which is still Beta but a fine editor all the same.

 

 

 

Comments:

Leave a Reply



(Your email will not be publicly displayed.)

Please type the letters and numbers shown in the image.Captcha Code