如何使用浏览器在php中运行大型python脚本

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
 )>

Try this:

<?php
  $term = system("/usr/bin/python /home/user/script.py /input-path/input/ /output-path/output"
 )>