php - Allowing Apache to use Locally Installed Python Modules, on a Server that I don't have root access -
i trying execute python script php this:
$output= shell_exec("/usr/bin/python grabdata.py);
the problem is, i'm using locally installed module. error :
traceback (most recent call last): file "/the path/grabdata.py", line 2, in <module> import xlrd importerror: no module named xlrd
is there way me make apache can use modules? note: said in title don't have root access.
virtualenv may give setup needed work own python environment in shared hosting world.
Comments
Post a Comment