I am trying to execute my python code from PHP application. But I am getting the below mentioned error when I try to execute from my PHP application. It works fine when running directly on the shell.
PHP: shell_exec( $scriptToCall . " 2>&1" );
Env:
- Python3
- PHP 7
- Ubuntu
Error:
ImportError: No module named 'httplib2'
I followed this link to - "ImportError: No module named httplib2" even after installation
also, pip list shows httplib2 installed.