I have a python script that makes use of various third-party and in-house libraries.
The problem is, they require different versions of Python.
My method to solve is going to be; have a folder containing the older version of python that I need, inside the project root folder. Run the main script using the most recent version of python; when I need to call on functions and modules that only work with an older version of python, use subprocess.call() to call the older python interpreter and pass to it the second script I want to run.
My question is: is this the right way to solve the problem? Is there a neater way? I'm getting a vague feeling that I shouldn't be doing this.