Cronjob With Conda

How to setup a python cronjob with conda UNIX based machine users can easily setup automated tasks using the default cronjob module. However, if your using conda environments, it might not just work auto-magically out of the box. After fiddling around with system path variables this is how I made my automated task work. TL;DR: Don’t try to use conda activate <env name>. Set PATH to /opt/anaconda3/envs/<env name>/bin in your crontab....

April 17, 2021 · 4 min · Me