Sat Jul 04, 2015 8:40 pm
Sun Jul 05, 2015 4:21 am
Mon Jul 06, 2015 11:57 am
jontait2 wrote:Only Gimp plug-ins go into the Gimp plug-ins folder.
natsort.py is a standard Python library module and must be properly installed in the Python directory tree so that the Python interpreter can find the pre-compiled .pyc files (ns_enum.pyc, etc).
On Linux, I just did this on a terminal window:
$ pip install natsort
and I could then immediately import the module into Gimp's Python Console:
>>> import natsort
>>> a = ['a2', 'a9', 'a1', 'a4', 'a10']
>>> sorted(a)
['a1', 'a10', 'a2', 'a4', 'a9']
>>>
I'm not sure what the installation process for Python modules is on Windoze - refer to the Python docs at
Mon Jul 06, 2015 12:38 pm
Mon Jul 06, 2015 3:10 pm
jontait2 wrote:Yeah, the Windows port of Gimp uses a "private" copy of the Python 2.x interpreter, which is stored in the the Gimp directory tree:
C:\Program Files\GIMP 2\Python
and all modules must be installed in the \Lib sub-folder of that \Python folder.
I haven't actually tried this on Windoze, but, once you've used the standard installer to download a module package into the standard Python installation, you should be able to just copy the entire folder (which contains all the .py, .pyc and any .pyo files) into Gimp's Python\Lib folder.
[Tip: if in doubt, just use your file manager to search for "antigravity.py" (a Python in-joke) - you should see one copy in each standard version of Python you have installed and one in the Gimp's directory tree. So copy the module you want from wherever you see it in the standard Python tree to wherever antigravity.py is in the Gimp directory tree and it should then work.]