Replies: 3 comments 2 replies
-
Faced this same issue with a project some day. Forgot the package I was trying to import though. Please @FeodorFitsner, make it clear. |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, as For example: import flet as ft
async def main(page: ft.Page):
if sys.platform == "emscripten":
import micropip
await micropip.install("regex")
await page.add_async(ft.Text("Hello, async world!"))
ft.app(main) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Alternatively, add |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
You can use Micropip API directly in your Flet app:
https://flet.dev/docs/guides/python/publishing-static-website/
I dont know what I did wrong. and I dont know if I need or when to use pyodide & micropip.
Code sample
------------------------------------------------------
Beta Was this translation helpful? Give feedback.
All reactions