Could you please check this Community case in our forum?
It's a bit old but maybe it's useful for you. Please note that you are using the Bitnami environment when using the terminal but I don't know if it's properly loaded in the crontab job, could you please try using one of these options?
1 - Create a script file that loads the Bitnami environment and run your command
/path/to/custom/ve/bin/python /path/to/script.py > /tmp/log.out 2>&1
and run that script in the crontab job
2 - Load the Bitnami environment before running the command in the cronjob
. /opt/bitnami/scripts/setenv.sh && /path/to/custom/ve/bin/python /path/to/script.py > /tmp/log.out 2>&1