Vijay Purbia
01/22/2025, 3:11 PMpython3 -m prefect
I am getting this error:
/path/to/python3.10: No module named prefect.__main__; 'prefect' is a package and cannot be directly executed
and I am using Python version 3. If I am trying to perform the same thing in prefect version 1, then I can see the output.Bianca Hoch
01/22/2025, 3:56 PMVijay Purbia
01/23/2025, 6:16 AMprefect worker start
. Previously I was using Prefect version 1 to run the Agent and it was working fine with the same envirnoment. After upgrading to Prefect version 3, it is throwing this error. I have checked, and Prefect is installed properly.Bianca Hoch
01/23/2025, 10:00 PMprefect worker start
?
I think running python3 -m prefect
will throw an error because you're trying to directly execute the Prefect package.
If you have prefect installed, you should be able to just use prefect <insert cmd here>
ie: prefect server start
, prefect worker start
, prefect profile inspect
etc.