How to import numpy package into my plugin?

omg… I just wanted to draw a painting better…
Where can I learn from to do all of that?

If you’re not a developer and a total beginner, in any case don’t expect to be able to code incredible things quickly
You’ll have to learn how to code, and especially learn how to works with graphics

What was your idea by “draw a painting better” with coding?
There’s maybe already functions/solutions that can be used

Basics about how to create plugin in Krita:
https://scripting.krita.org/lessons/introduction

Grum999

No matter how much I searched, I couldn’t find the solution I was looking for.
Thank you so much for your help.

It was using the Appimage. I will investigate later and report back in the topic you posted above. Let this topic only for drive.programming0 problem.

2 Likes

@drive.programming0 I’m not a coder but I’ve been following this thread. Would you be interested in stating what problem you’re trying to solve? What is it you want to do better in Krita?

If you’re new to Krita it’s possible that what you want to accomplish already exists or perhaps we can help you with a workaround.

2 Likes

copying numpy to pykrita folder works for me

C:\Program Files\Krita (x64) 5.0.0-beta1\Krita (x64)\share\krita\pykrita

2 Likes

to be precise, it was svgpathtools that import numpy as np, both of them were pasted in the pykrita folder, i don’t know exactly how it works but it seems like that it has something to do with sys.path

Yeah I was about to say that. Making a copy of numpy into your plugin folder. You can use pip to install into any folder and then just have your plugin access into to the file path you want. I would just make a sub folder with them inside.

1 Like

It works!! Thank you very much.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.