The docs showed that Pyodide official packages can be simply imported in the code snippet. In the example, the asciitree import works.
However, I tried importing the tiktoken package, which I confirmed to be part of the Pyodide packages, and got this error:
Traceback (most recent call last):
ModuleNotFoundError: No module named 'tiktoken'
The code snippet I used:
import tiktoken
enc = tiktoken.get_encoding("cl100k_base")
text = "Hello, World"
tokens = enc.encode(text)
print(tokens)
We can reproduce this error by running the snippet above in any of the code runners in the docs site.
Could I be missing something?
The docs showed that Pyodide official packages can be simply imported in the code snippet. In the example, the
asciitreeimport works.However, I tried importing the
tiktokenpackage, which I confirmed to be part of the Pyodide packages, and got this error:The code snippet I used:
We can reproduce this error by running the snippet above in any of the code runners in the docs site.
Could I be missing something?