(Before marking as duplicate make sure you understand what this question is about)
I have an application that has a Python API, and I want to ship the Python interpreter which would enable users to run Python in interactive mode. The shipped Python will contain my package pre-installed.
The application is written in Java, but I did not want to couple the shipped Python and the application if possible - I wanted to have a self-contained binary that allows running Python in interactive mode and then having my application referencing it. Bottom line is I wanted a way to ship Python itself in a self-contained way, that is a good way to phrase it.
Just to further clarify - the purpose is not to ship a binary with a compiled Python script using something like pyinstaller or freezing tools, as I have found on many duplicate threads such as Shipping interpreter with Python application, Embed Python interpreter in a Python application, How to bundle a Python application including dependencies? and others. The user being able to use Python in interactive mode is a hard requirement.
So, again, the whole point here is being able to run the shipped Python in interactive mode with some pre-installed dependencies, in which case I think the solutions I have found so far (some of them referenced above) are not robust/self-contained enough. Let me know if I am missing something, which might be the case.