Skip to content Skip to sidebar Skip to footer

How Do I Setup A Cron To Run Specifically With Python3?

I'm trying to setup a cron job to run a python script every hour, but it has to be run with python3. I've tried setting up the cron to point to the python 3.6 libraries, but this d

Solution 1:

Are you sure that your python3 path is correct? If you are not using a virtual environment you could try this:

0 * * * * $(which python3) /mnt/dietpi_userdata/python/main.py

Additionally you could manually run which python3 to verify your python3 path.

Post a Comment for "How Do I Setup A Cron To Run Specifically With Python3?"