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.

https://virtualenv.pypa.io/en/latest/


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -