I'm using Python for my Worker, and This Cloudflare page described that I can use aiohttp package, but when i include that package along with fastapi in requirements.txt, I have the error: " found in requirements.txt. Note that requirements.txt should contain package names only, not version specifiers.
I tried many ways to remove the error:
- Remove the
requirements.txt, after that my Worker returnModuleNotFoundErrorerror - Add packages back
requirements.txt(or even empty the file), after that Wrangler still said" found in requirements.txt. Note that requirements.txt should contain package names only, not version specifiers. - Try to ignore the above error, now Cloudflare Workers return error
You cannot yet deploy Python Workers that depend on packages defined in requirements.txt.
But that Cloudflare page link above has intruction for the use of requirements.txt. So how can I use packages that supported by that page (fastapi and aiohttp)?