The error message you're encountering, "'charmap' codec can't decode byte 0x8f," typically indicates a problem with character encoding. This often occurs when software tries to decode bytes using an incorrect character set. Since you're facing this issue on Windows while trying to deploy with Prefect, it might be related to how Python processes text in your environment.
To better assist you, could you please confirm which version of Prefect you are using? Prefect 2.x or 3.x? This will help in providing the most accurate solution and documentation references.