ModuleNotFoundError:No module named 'st_aggrid'

Please help me…
(# ModuleNotFoundError)
for st_aggrid while deploying the app. It works when using local host.
I have already installed streamlit-aggrid.

code
from st_aggrid import AgGrid

terminal
File “/Users/takenawakajun/Desktop/aaa.py”, line 1, in
from st_aggrid import AgGrid
ModuleNotFoundError: No module named ‘st_aggrid’



スクリーンショット 2022-07-04 18.12.18

Hi @take2202, welcome to the Streamlit community!

Can you clarify where this code does run and where it doesn’t? Your post implies that it works on localhost, but then the image you provide shows that it doesn’t run on localhost.

Best,
Randy

Same issue as OP. and @randyzwitch you are correct, in localhost, I have no issue with st_aggrid, but when deploying, I get this error.

Hi @Ahm_u.k ,

if you are having troubles with deployment, are you doing it on Streamlit cloud? If so, I would recommend looking at this documentation and supplying streamlit-aggrid as a dependency.

Here is some documentation that may help with your issue.

If this doesn’t help, please let me know I can try to help further!

Thanks,

William

Here’s an additional doc specifically about the ModuleNotFoundError: