I've just done something like this. I used http://symfony.com/doc/current/components/process.html
Jul 2, 2017
3
Level 1
Running Python in Laravel
Hi, I am trying to run my python code in larval. I am able to run the main python file but the code is not able to run the imports I have in the python file to the other methods I have written. I have added all the import python files in the same folder. Not sure how to fix this. I am running the python script using the following command.
$output = exec('python "//Users/akshaygupta/code/Test/Keyword_Extraction/example.py" "'.$arg.'"');
Please or to participate in this conversation.