FAQ: 'streamlit' is not recognized as an internal or external command

Problem

When trying to run Streamlit in the command, you may receive the following error:

 'streamlit' is not recognized as an internal or external command

In a nutshell, this error indicates that the system cannot find the streamlit executable.

Solution

Potential causes include:

  • Streamlit is not installed correctly
  • The environment variables are not set correctly

To resolve this, you can:

  • Make sure to activate the correct environment where the streamlit executable is installed. For example, you may have installed Conda to manage your Python environment. In such a case, you have 2 versions of Python (1. the system version and 2. the conda version)
  • Adding the directory containing the streamlit executable to the system path

Resources

1 Like