this is my python codes
#!/usr/local/bin/python3.9
import sys
sys.path.append(“/usr/local/lib/python3.9/site-packages”)
import cv2
a=1
print(a)
and this is my php codes:
<?php $command = escapeshellcmd("python /home/absenpmo.site/public_html/register.py"); $output = exec($command); echo $output; ?>the result are nothing, and i cannot see the error in the cyberpanel error log
the result should be an output in website
when i comment the import cv2 in .py, the program runs smoothly
but the point is i want to import cv2
and the package has been installed succesfully like in the picture
i am using the latest version CyberPanel
Centos 7 OS
Python 3.9.1