Installing Python for GIMP 2.6 (Windows)
Today, most GIMP scripts/helpers/extensions are written using Python instead of the outdated SCHEME (known as Script-Fu). This allows a lot of great possibilities, but at the moment the installation of GIMP-Python for Windows requires a few steps. I will try to explain them in this article.
This article has been written using GIMP 2.6.
It's divided into 8 steps and takes about
10 min to complete for an average user. 14575 times read so far.
Category: Scripts & programming, required skill:

31 comments have been posted so far.
Available in other languages:
Relevant links:
-
1
Before you install Python scripts and wonder why they don't work, make sure that your GIMP installation contains Python support.
You can determine this by looking into the "Filters" menu. If there's a entry named "Python-Fu" next to "Script-Fu", Python support is available.
On the screenshot, you can see a German GIMP installation without Python support (no Python-Fu menu entry next to Script-Fu).
This tutorial will cover the situation that GIMP for Windows is already installed and the missing Python support shall be added. -
2
Python is a programming language (scripting language) that is not shipped with GIMP, but can be downloaded separately. GIMP access to an installed Python interpreter and makes use of it.
If Python is not available at the time of installing GIMP, the required Python support module for GIMP won't be installed (see screenshot: it shows a GIMP installation window in custom mode, the "GIMP Python Extension" checbkox is disabled because Python is not available).
As a consequence, you will have to install the necessary GIMP modules after installing Python, too! -
3
Download these components:
Python (I prefer the Windows Installer package), PyCairo, PyGObject, PyGtk
In contrast to the instructions on the PyGtk Web site you don't have download the Gtk+ runtime (don't confuse it with PyGtk) separately because GIMP already comes with a Gtk library. -
4
At first, install Python ...
-
5
... then PyCairo, PyGtk, PyGObject.
-
6
As explained above, you have to install GIMP's Python support now. The easiest way to do so is to re-install GIMP (in my test, preliminary uninstall was not required).
If you chose the customized setup (not required), you can see that the "GIMP Python Extension" will be installed now. -
7
Python support is now available in GIMP. Check by verifying that the Python-Fu menu is now available (see screenshot).
-
8
Python plugins must be stored in the .gimp-2.6/plug-ins directory of the user's home folder. As soon as you restart GIMP, the plugins should be available. On the screenshot you can see the directory of "user1" where the Python-Fu plugins have to be stored.
This article is licensed under the following license: Attribution-Noncommercial 3.0 Austria




Links (pingbacks)
Comments
Post your own comments, questions or hints here. The author and other users will see your posting and can reply to it. Of course, you can also ask in the chat.
Comments are chronologically arranged.
http://www.gimpusers.de/tutorials/install-python-for-gimp-2-6-windows.html 1 rating(s) with 5.0 of 5 stars in average