I have two Python environments installed. EnvA which is my default up to date environment and EnvB which has older versions of some packages used in EnvA. Is it possible to launch some code based on EnvB from a program running with the interpreter of EnvA?
As a practical example:
I have a pyqt5 GUI which I use to convert my *.ui files, it basically calls the pyuic5
shell command.
I would like to add the option of converting .ui to pyqt4 code, which is not possible as is, since the PyQt4
library was replaced by PyQt5
in this environment.
Is it possible for my main program to execute a script in a subprocess/interpreter/.. with a different python environment, and return once the script has done its job?