An execution environment is the collection of tools and settings used to create, test, and run an application. For a Streamlit project, it includes version control, a code editor, Python virtual environments, dependencies, and the Streamlit runtime. section 2.0 section 2.2
A reliable environment supports the full development workflow:
- Use Git to track application code and changes. section 2.0
- Choose an editing tool and isolate project dependencies with virtual environments. section 2.2
- Keep development and production environments aligned so dependency differences do not break the app. section 5.4.1
Matching development and production
A Streamlit app using requests may work locally with requests 2.1.1 but fail in production with version 2.0.5. Pin compatible versions in requirements.txt and install them with pip install -r requirements.txt. section 5.4.1
Listing 5.5 A strict requirements.txt file
requests==2.31.0 streamlit==1.34.0
A strict requirements.txt example shows how to pin the exact requests and Streamlit versions used by the application. section 5.4.1


