pip install streamlitIf this fails with cmake errors, follow the steps below.
-
Download Visual Studio Build Tools:
- Go to: https://visualstudio.microsoft.com/downloads/
- Scroll down to "All downloads" → "Tools for Visual Studio"
- Download "Build Tools for Visual Studio 2022"
-
Run the installer and select:
- ✅ Desktop development with C++ workload
- This includes MSVC compiler, Windows SDK, and CMake
-
Click "Install" (takes ~3-5 GB, 10-20 minutes)
- Download CMake: https://cmake.org/download/
- Choose "Windows x64 Installer"
- During installation, select "Add CMake to system PATH"
- Restart your terminal/PowerShell
# Restart terminal after installing build tools
pip install streamlitstreamlit run streamlit_app.pyThe app will open automatically in your browser at http://localhost:8501
These versions have pre-built wheels, so no build tools needed:
- Install Python 3.11 or 3.12 from python.org
- Create new virtual environment:
py -3.11 -m venv venv_streamlit venv_streamlit\Scripts\activate pip install -r requirements.txt pip install streamlit streamlit run streamlit_app.py
After installation, verify it works:
streamlit --version
# Should show: Streamlit, version 1.x.x- Make sure CMake is installed and in PATH
- Restart terminal after installation
- Install Visual Studio Build Tools with C++ workload
- Restart terminal
Use the API server instead - it works immediately:
python api_server.py
# Visit http://localhost:8000/docs✅ Single Route Analysis - Analyze one route at a time ✅ Batch Analysis - Analyze multiple routes in parallel ✅ Session History - View past route analyses ✅ Risk Breakdown - See weather, crime, lighting, time risks ✅ Safety Alerts - Get formatted safety recommendations