https://prefect.io logo
Title
s

Siôn

06/07/2022, 12:03 PM
Hi Prefect Community! Does anyone have any idea how to set the Python Version for the Kubernetes Agent? Currently getting this error:
python: (flow built with '3.10.4', currently running with '3.7.13')")
But there doesnt seem to be any docs on how to set this python version in the agent deployment cli
a

Anna Geller

06/07/2022, 12:12 PM
This is a storage issue due to pickle - this docs page will explain https://docs.prefect.io/orchestration/flow_config/storage.html#pickle-vs-script-based-storage to answer your question directly though: you can set the Python version on your Prefect docker image tag e.g.
docker pull prefecthq/prefect:latest-python3.10
docker pull prefecthq/prefect:latest-python3.9
docker pull prefecthq/prefect:latest-python3.8
docker pull prefecthq/prefect:latest-python3.7
1
s

Siôn

06/07/2022, 12:13 PM
Perfect, cheers 🙂
👍 1