12-07-2017, 12:57 PM
Thread Rating:
Gimp, python, and numpy
|
(12-07-2017, 12:57 PM)Ofnuts Wrote: If numpy is installed, don't bother with that. Just check that Gimp sees numpy by going to Filters>Python fu>Console and do: No, I get this: Also, the Python version^ for Gimp looks older (than yours) (my system-wide python is 2.7.14) - maybe that's the problem?
12-07-2017, 01:26 PM
(This post was last modified: 12-07-2017, 01:32 PM by rich2005.
Edit Reason: typo
)
Might be easier to install linux than get anything working in Windows
In the spirit of always willing to try, this using Win7 (a bit faster than my Win10 VM) First which 'flavour' of python. The Win installers have both 32 and 64 bit versions. I have tried both with the same result. The Python in a 64 bit Windows Gimp 2.8.22 is 32 bit, so this example using 32 bit for the screenshots. Installing Python, easy enough. The only option to enable is adding python to the windows path. https://i.imgur.com/PINkYFd.jpg other wise everything is default. Using pip to install numpy. Again there are 32/64 bit versions of the numpy .whl file Lots in this screenshot of the windows terminal https://i.imgur.com/9yMZ8C9.jpg 1. the python version 2. installing numpy - that added the f2py files to the Python 27\Scripts folder 3. A check that python has been added to the path. 4. The Python command and import numpy, no error messages. A restart of Win, just in case and onto Gimp Starting Gimp in a terminal with the verbose switch all the usual, nothing special. https://i.imgur.com/1yMRV2G.jpg The Gimp 2.8.22 Python console with import numpy - not found https://i.imgur.com/QdyfC2h.jpg So, that is me finished. quote from the stackoverflow thread ..Can't believe there are so many lengthy (perhaps outdated?) answers out there..
I guess the problem is the same as of Zero01: those procedures install not under Gimp 2/Python... but under the standalone C/Python 27
anyhow, Rich, thanks for your try
12-07-2017, 01:55 PM
Well it looks impossible (or highly unlikely) to me... Yep, think I'll install linux in a VM and take it from there - thank you.
12-07-2017, 02:22 PM
12-07-2017, 02:24 PM
(12-07-2017, 12:29 PM)Zero01 Wrote:(12-06-2017, 11:26 PM)Ofnuts Wrote: Normally you should be able to Did you install Python separately by any chance? In which case you installed numpy for that Python, and not for the one used by Gimp.
12-07-2017, 03:08 PM
(This post was last modified: 12-07-2017, 05:11 PM by Zero01.
Edit Reason: typo
)
Right, Python has been installed for some time now (months), so I didn't know how to specifically install numpy for the Python that GIMP uses, I thought that was what I was doing!
12-07-2017, 03:09 PM
Here's what I've just done:
(12-07-2017, 03:09 PM)Kevin Wrote: Here's what I've just done:Kevin, At step 3 I got this error (12-07-2017, 03:42 PM)dinasset Wrote:(12-07-2017, 03:09 PM)Kevin Wrote: Here's what I've just done:Kevin, At step 3 I got this error Sorry, I see my error.... GOT IT ! Many thanks Kevin ! Kevin, may I insert a post in GC copying what you wrote here? Or will you do it yourself? (even better) I guess it is a very important mini-tut. |
« Next Oldest | Next Newest »
|