Well, I don't know what your problem is but, I guess you did't set the PATH
.
Try this,
- Run
printenv | grep "PATH"
. (check your PATH)
- Add
PATH
to your crontab
PATH=/your/path
*/1 * * * * your_command
P.S
You can get a log from python script like
Users/myname/opt/anaconda3/bin/python main.py >> /log/file/path 2>&1
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…