I have tried all the php method to run my python script in php like exec(),shell_exec(),system(),popen() etc but nothing is working , if try the php from terminal it is working fine
Here is my script
test.php
<?php
$term = system(python /home/user/script.py /input-path/input/ /output-path/output
)>