I am user of ubuntu and I run many scripts written with python3 which was installed through anaconda. All modules that I need have been installed there previously i.e. biopython. However, I can't import biopython in one of my script when I try to run my script from /usr/lib/cgi-bin
from Bio import SeqIO #it doesn't work
You can see the ERROR in this page http://pegaso.microbiologia.ull.es/cgi-bin/hello.py which is my server.
I have tried the advices proposed on Why can't python find some modules when I'm running CGI scripts from the web? or https://www.raspberrypi.org/forums/viewtopic.php?t=50225
In the first case, sudo permissions to www-data create a warning of security because I am using the server from a public institution. The second case is for raspberrypi
How can I fix the problem??
I guess that my problem is: I don't know how to share anaconda packages with the user of HTTP server because the HTTP server executes my scripts as user “nobody". How can I do that?