Streamlit-extras are being imported from another environment
I am using Conda environment (python - 3.10.9). And every import is coming from that environment’s path except streamlit-extras. I already installed streamlit-extras on this environment and double checked whether it is there.
But when I import, it is looking another path (python - 3.7) and therefore giving ModuleNotFound Error.
Code snippet:
from streamlit_extras.let_it_rain import rain
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Expected behavior:
Rain Emoji
Actual behavior:
ModuleNotFoundError: No module named ‘streamlit_extras.let_it_rain’
Traceback:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
exec(code, module.__dict__)File "/Users/abduraimovusmanjon/Desktop/danger/pages/1_🎢_Insights.py", line 16, in <module>
from streamlit_extras.let_it_rain import rain
Debug info
- Streamlit version: streamlit==1.17.0
- Python version: Python 3.10.9
- Using Conda? Conda
- OS version: MacOs
Requirements file
Using Conda? PipEnv? PyEnv? Pex? Share the contents of your requirements file here.
Not sure what a requirements file is? Check out this doc and add a requirements file to your app.
Links
- Link to your GitHub repo:
- Link to your deployed app: