www-data user unable to import installed python modules
问题 I am trying create a web-server which ultimately calls a python script ("MyScript.py") from PHP code with the following command echo exec("MyScript.py ....some arguments") MyScript.py actually contains a code which uses RDkit and other modules like numpy. When I run this MyScript.py from user (MKT)....it works like a charm. But the problem arises when it get executed from PHP script from server. The error message in /var/www/log/apache2/error.log is as follows: ImportError: No module named