Problem
As others have noted, don't put gtk in the path. I know it is tempting and it works on XYZ, but it (to put it mildly) is confusing. The addiction agent is bad on a Linux platform that is trying to make your job easier.
To find out what PyGTK All In One does for you, install (which is apparently complete) gtk + runtime directly into your python package folder, for example, in C: \ Python \ Lib \ site-packages \ gtk-2.0 \ runtime
Decision
NOTE :% YOURPYTHONPATH% is an EXAMPLE variable that contains the path to your Python installation (for example, C: \ Python, or C: \ Python27, or whatever it is). I suggest setting% PYTHON_DIR% or% PYTHON_PATH% if you want to use a variable to do this, since more programs can use this.
For your XYZ program to require GTK to work, add % YOURPYTHONPATH% \ Lib \ site-packages \ gtk-2.0 \ runtime \ bin to PATH when you start your program; the correct versions of the DLL that it should reference are in this folder. All the other GTK + that I installed (GTK + / GTK2-Runetime) gave me errors.
Again; Do not try to set a user or system level variable (do not open the dialog box below), as this will probably cause problems for you later if you are NOT VERY sure that you know what you are doing. If you read this, you most likely donβt know as much as you think you are doing. Instead, change the path on the cmd command line or use the batch / script file to configure it for you.

source share