I'm using Namecheap's cPanel, and their support is terrible.
I have a Laravel application that executes a python script that gives me the data I need.
Currently, I'm using a a simple
.
I changed the python interpreter to the correct location, but the server doesn't have the correct modules to run the file.
I was suggested to create a Python Web App, but I don't think that'll solve what I need, and that's just to run the python file and take the output of it.
Does anyone have a better way of executing a python script(with modules) and take it's output?
I have a Laravel application that executes a python script that gives me the data I need.
Currently, I'm using a a simple
PHP:
$result = shell_exec("python filepath arg1 arg2 arg 3");
I changed the python interpreter to the correct location, but the server doesn't have the correct modules to run the file.
I was suggested to create a Python Web App, but I don't think that'll solve what I need, and that's just to run the python file and take the output of it.
Does anyone have a better way of executing a python script(with modules) and take it's output?