Python plugin - Trying yo make it work in another computer

Hello guys, this is the first time I have asked something in our community!

Well, I did create a plugin based on stable diffusion using python.
Everything works well on my computer, but when I tried to use in another, is full of dependencies missing.

I think I did try everything,
I’d like the user to just copy/paste… and not to change system variables and install modules as crazy…

All the code is in here

Thanks in advance!

Omg, there is no one who knows what to do :scream:

@UE_FlavienP :slight_smile:

Not so much experience here.
Do you need a lot of modules to be installed?

If I understand correctly, your plugin needs to get some extra modules to be installed with python.
I see you try to force Unreal python to install some with init_unreal.py. Does that work? Are those installed properly inside your UE5 python installation?
Then I see a lot of modules in your Dream plugins? What are those for? To manually copy?

It feels the nicer way would be to have a script that makes python install missing modules inside your UE installation.
Else on one of our internal project we put some python modules inside /Content/Python/ of the project and pass it around and afaik that seemed sufficient.

Hello finally I got a solution, this is how to load the dependencies:
https://github.com/Mystfit/Unreal-StableDiffusionTools/blob/master/StableDiffusionTools/Content/Python/install_dependencies.py