0

I have a python3 application calling C/C++ functions. In one of the C++ functions, I'd like to run a python interpreter. It doesn't have to deal with the first python environment, the are totaly dissociated.

I tied to use embed a pybind interpreter but I got the following error "The interpreter is already running"

Fred
  • 39
  • 4
  • This seems to be similar to https://stackoverflow.com/questions/59937552, does the answer there help? – Ulrich Eckhardt Feb 10 '20 at 16:03
  • I'm not saying that it's impossible, but I can't help but wonder if there might be a better approach to this. If you're going to end up calling python functions anyway, why not just leave that part as pure python? – David Culbreth Feb 10 '20 at 16:09

1 Answers1