I certainly see "--prefix" listed by pip3 install --help
Anywho, as per the SO link, surely this shouldn't care about hardcoded locations in the executable entry points?:
Code:
import pip
pip.main(['install', mymodule, 'further', 'optional', 'parameters'])
This should theoretically make it easy for plugin authors to install modules as needed, if they aren't available.