https://prefect.io logo
Title
e

Emma Rizzi

07/20/2022, 7:22 AM
Hello! Following the lastest annoncement about the pip install command, I need some clarifiction 🧐 I'm still using prefect 1.0, not ready yet for migration, do I just need to be carefull about the prefect version installed in my environment to register the flow, or is there other modifications to do ? thanks!
m

Mike Geeves

07/20/2022, 9:12 AM
I would understand it to mean just make sure in your
requirements.txt
file(s) you're pinning a version, not just
prefect
which would install the latest if you were to install from scratch. So if you already have say
prefect~=1.2.4
in there or are using poetry which will be pinning all the versions it should be fine, if not you can check the version you're currently using if preferred, and add it in. (disclaimer: casual observer, not currently a user!)
πŸ™Œ 1
a

Anna Geller

07/20/2022, 10:32 AM
exactly, as long as you explicitly specify the version, you will avoid any surprises
e

Emma Rizzi

07/20/2022, 11:07 AM
@Mike Geeves @Anna Geller thanks for your answers, just to be sure, you mean the version of the env that builds the flow ? there's nothing to change inside the flows ?
a

Anna Geller

07/20/2022, 12:51 PM
yup exactly, I meant:
pip install prefect==1.2.4
rather than just this (which would install 2.0):
pip install prefect
e

Emma Rizzi

07/20/2022, 1:13 PM
great! thanks a lot ☺️
πŸ™Œ 1