I have two Python libraries that I need to run within the same environment. They are pptk and torch-scatter and do not have an overlapping Python version requirement; pptk <= 3.7 and torch-scatter >= 3.8. They both make somewhat heavy use of C++ to enhance their functionality and I doubt I have the technical skills required to update/downdate them for eithers required Python version.
Given that pptk is a plotting library the only solution I see is to create a Python 3.8 environment and install torch-scatter. Then write a script to take whatever data I wish to provide to pptk to display, pickle it to NamedTemporaryFile. Finally start a new process and pass the file name to it as an argument, the process would run a Python 3.7 environment with pptk installed, load the file, and display the data.
Is there are simpler solution than the one described? Is there some support in Python to call a differently Python versioned library and perform some automagic marshalling?