ModuleNotFoundError: No module named 'cachetools'

Hi all !

Trying to run any streamlit app, but this error always occurs :roll_eyes:

Python 3.9.16
Conda 23.1.0
Streamlit 1.18.1

File “C:\Users\anaconda3\lib\”, line 197, in run_module_as_main
return run_code(code, main_globals, None,
File “C:\Users\anaconda3\lib\”, line 87, in run_code
exec(code, run_globals)
File "C:\Users\anaconda3\Scripts\streamlit.exe_main
.py", line 4, in
File "C:\Users\anaconda3\lib\site-packages\streamlit_init
.py", line 55, in
from streamlit.delta_generator import DeltaGenerator as DeltaGenerator
File “C:\Users\anaconda3\lib\site-packages\streamlit\”, line 36, in
from streamlit import config, cursor, env_util, logger, runtime, type_util, util
File “C:\Users\anaconda3\lib\site-packages\streamlit\”, line 18, in
from streamlit.runtime.scriptrunner import get_script_run_ctx
File "C:\Users\anaconda3\lib\site-packages\streamlit\runtime_init
.py", line 16, in
from streamlit.runtime.runtime import Runtime as Runtime
File “C:\Users\anaconda3\lib\site-packages\streamlit\runtime\”, line 29, in
from streamlit.runtime.app_session import AppSession
File “C:\Users\anaconda3\lib\site-packages\streamlit\runtime\”, line 35, in
from streamlit.runtime import caching, legacy_caching
File "C:\Users\anaconda3\lib\site-packages\streamlit\runtime\caching_init
.py", line 21, in
from streamlit.runtime.caching.cache_data_api import (
File “C:\Users\anaconda3\lib\site-packages\streamlit\runtime\caching\”, line 28, in
from cachetools import TTLCache
ModuleNotFoundError: No module named ‘cachetools’


Install cachetools.

I had it installed, but reinstalled now and it worked :+1: