I see in this article: making and automatic python installer that you can use:
subprocess.run('pip install module_name')
or
subprocess.run('pip install -r requirements.txt')
in this format to install modules either individually or form a file. But when i run this command I get this error:
FileNotFoundError: [Errno 2] No such file or directory:
is there a way to run this like that without having to do this:
subprocess.run(['pip', 'install', 'module_name'])