I have searched a lot of information and seen a lot of c++ methods to call python. But because the specific requirements are a little more complicated than the title, I still haven't found a good way to implement this idea.
Currently I have written a c++ executable program using QT. I want it to be able to call a fixed interface written by the user in python.
I need to make this program release compiled and run on different users' computers. But not inline python interpreter. That is I need to make this program use the python interpreter on the user's computer. How should I make it automatically search for the user's python interpreter version to interpret the user's python function.
Before asking the question, I've used this tutorial from the official python documentation to compile a code that only works on my own computer. It won't work on another computer because the python interpreter and dynamic library are in different locations