ModuleNotFoundError: No module named 'streamlit_option_menu' during deployment

hi, i encounter the following error during deployment,i have streamlit_option_menu installed and specified in my requirement.txt file


Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/", line 556, in _run_script
    exec(code, module.__dict__)
  File "/app/nigeria-election2023-prediction/", line 4, in <module>
    from streamlit_option_menu import option_menu
ModuleNotFoundError: No module named 'streamlit_option_menu'

Hi @eddie_bob, welcome to the community! :wave:

Rename requirement.txt to requirements.txt

It worked, thank you

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.