PHP code
<?php
echo shell_exec(' python /Users/rushikesh/Sites/hello2.py ');
>?
Python code
print('hello')
import numpy as np
print('hello2')
It outputs only hello, why does the code doesnt give any output after import statements.
I even tried finding error
echo shell_exec(' python /Users/rushikesh/Sites/hello2.py ');
But still am getting blank output after import statements
print('hello')is being echoed in php?