Technically this is a duplicate of How can I install Python modules programmatically / through a Python script?, but the answer to that question is a little too specific and outdated anyway.
I'd like my Python program to be able to download and install its dependencies with pip without user input (further than a "do you want to install this" anyhow). What's the recommended way to go about this?