Python file runs properly when executed from terminal.
Gives error "ImportError: No module named bs4" when run with cron.
I'm running python3.6 from /anaconda3/lib/python3.6
python3.6
>>> from crontab import CronTab
>>> cron = CronTab(user=True)
>>> job = cron.new(command='python /Users/X/Y/Z/Hello.py')
>>> job.minute.every(1)
>>> cron.write()
Hello.py calls beautifulsoup from bs4, which is in /anaconda3/lib/python3.6/site-packages/bs4/
Cron details are:
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>