In a cgi script, you can try adding the path to this package before any import.
sys.path.insert(0, 'path to biopython package')
If you are using Apache, you must install PYTHONPATH in the conf file with the SetEnv directive
SetEnv PYTHONPATH "path to biopython package"
source share