Hi Prefect Community! Does anyone have any idea h...
# best-practices
s
Hi Prefect Community! Does anyone have any idea how to set the Python Version for the Kubernetes Agent? Currently getting this error:
Copy code
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
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.
Copy code
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
Perfect, cheers 🙂
👍 1