golthitarun's avatar

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.'"');

0 likes
3 replies

Please or to participate in this conversation.